Skip to content

Commit

Permalink
Merge pull request #3 from trnl/master
Browse files Browse the repository at this point in the history
JENKINS-6890: Support for Matrix jobs
  • Loading branch information
abayer committed Sep 6, 2013
2 parents a659810 + 3ef737c commit 90b2239
Showing 1 changed file with 10 additions and 1 deletion.
Expand Up @@ -23,6 +23,8 @@
*/
package hudson.plugins.cloneworkspace;

import hudson.matrix.MatrixConfiguration;
import hudson.matrix.MatrixProject;
import hudson.scm.PollingResult;
import hudson.scm.SCM;
import hudson.scm.ChangeLogParser;
Expand Down Expand Up @@ -340,7 +342,14 @@ public List<String> getEligibleParents() {

for (AbstractProject p : Hudson.getInstance().getAllItems(AbstractProject.class)) {
if (p.getPublishersList().get(CloneWorkspacePublisher.class) != null) {
parentNames.add(p.getFullName());
if (p instanceof MatrixProject) {
MatrixProject mp = (MatrixProject) p;
for (MatrixConfiguration configuration : mp.getActiveConfigurations()) {
parentNames.add(configuration.getFullName());
}
} else {
parentNames.add(p.getFullName());
}
}
}

Expand Down

0 comments on commit 90b2239

Please sign in to comment.