From f8c4dbb49ef931101c454929c819eefb6b01b652 Mon Sep 17 00:00:00 2001 From: Jurgen Van Bouchaute Date: Tue, 19 Mar 2013 19:10:32 +0100 Subject: [PATCH] Added support for the jenkins Multijob plugin --- pom.xml | 10 ++++++++++ .../java/hudson/plugins/release/ReleaseWrapper.java | 7 +++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index d0d2f4f..32a8dcd 100644 --- a/pom.xml +++ b/pom.xml @@ -43,6 +43,12 @@ 2.0 true + + org.jenkins-ci.plugins + jenkins-multijob-plugin + 1.8 + true + @@ -51,6 +57,10 @@ repo.jenkins-ci.org http://repo.jenkins-ci.org/public/ + + maven.jenkins-ci.org + http://maven.jenkins-ci.org/content/repositories/releases/ + diff --git a/src/main/java/hudson/plugins/release/ReleaseWrapper.java b/src/main/java/hudson/plugins/release/ReleaseWrapper.java index 109ed1b..d0b5d55 100644 --- a/src/main/java/hudson/plugins/release/ReleaseWrapper.java +++ b/src/main/java/hudson/plugins/release/ReleaseWrapper.java @@ -24,6 +24,7 @@ */ package hudson.plugins.release; +import com.tikal.jenkins.plugins.multijob.MultiJobProject; import hudson.EnvVars; import hudson.Extension; import hudson.Launcher; @@ -73,6 +74,8 @@ import org.kohsuke.stapler.StaplerRequest; import org.kohsuke.stapler.StaplerResponse; + + /** * Wraps a build with pre and post build steps. These steps can take * any action as part of the special release build. @@ -196,7 +199,7 @@ public List getPostBuildSteps() { } /** - * @param postBuildSteps The postBuildSteps to set. + * @param postSuccessBuildSteps The postBuildSteps to set. */ public void setPostBuildSteps(List postSuccessBuildSteps) { this.postBuildSteps = postSuccessBuildSteps; @@ -381,7 +384,7 @@ public BuildWrapper newInstance(StaplerRequest req, JSONObject formData) throws @Override public boolean isApplicable(AbstractProject item) { - return FreeStyleProject.class.isInstance(item) || MavenModuleSet.class.isInstance(item); + return FreeStyleProject.class.isInstance(item) || MavenModuleSet.class.isInstance(item) || MultiJobProject.class.isInstance(item); } }