Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support Multijob type projects #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@
<version>2.0</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>jenkins-multijob-plugin</artifactId>
<version>1.8</version>
<optional>true</optional>
</dependency>
</dependencies>


Expand All @@ -64,6 +70,10 @@
<id>repo.jenkins-ci.org</id>
<url>http://repo.jenkins-ci.org/public/</url>
</repository>
<repository>
<id>maven.jenkins-ci.org</id>
<url>http://maven.jenkins-ci.org/content/repositories/releases/</url>
</repository>
</repositories>

<pluginRepositories>
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/hudson/plugins/release/ReleaseWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
*/
package hudson.plugins.release;

import com.tikal.jenkins.plugins.multijob.MultiJobProject;
import hudson.DescriptorExtensionList;
import hudson.EnvVars;
import hudson.Extension;
Expand Down Expand Up @@ -482,7 +483,7 @@ private ExtensionList getSteps()

@Override
public boolean isApplicable(AbstractProject<?, ?> item) {
return FreeStyleProject.class.isInstance(item) || MavenModuleSet.class.isInstance(item) || MatrixProject.class.isInstance(item);
return FreeStyleProject.class.isInstance(item) || MavenModuleSet.class.isInstance(item) || MatrixProject.class.isInstance(item) || MultiJobProject.class.isInstance(item);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will cause the ClassNotFound exception if this plugin is not installed

}

public boolean isMatrixProject(AbstractProject<?, ?> item) {
Expand Down