Skip to content
Permalink
Browse files
Merge pull request #3 from trnl/master
JENKINS-6890: Support for Matrix jobs
  • Loading branch information
abayer committed Sep 6, 2013
2 parents a659810 + 3ef737c commit 90b2239f59cf22c094d8ccfe755371f946fbcdba
Showing 1 changed file with 10 additions and 1 deletion.
@@ -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;
@@ -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());
}
}
}

0 comments on commit 90b2239

Please sign in to comment.