Skip to content

Commit

Permalink
JENKINS-38142 Posibility to specify JIRA site in jenkins pipeline pro…
Browse files Browse the repository at this point in the history
…ject (#106)
  • Loading branch information
vitia authored and warden committed Oct 18, 2016
1 parent 4ce8632 commit 7600eb9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/java/hudson/plugins/jira/JiraProjectProperty.java
@@ -1,7 +1,6 @@
package hudson.plugins.jira;

import hudson.Extension;
import hudson.model.AbstractProject;
import hudson.model.Job;
import hudson.model.JobProperty;
import hudson.model.JobPropertyDescriptor;
Expand All @@ -20,11 +19,11 @@
import java.util.logging.Logger;

/**
* Associates {@link AbstractProject} with {@link JiraSite}.
* Associates {@link Job} with {@link JiraSite}.
*
* @author Kohsuke Kawaguchi
*/
public class JiraProjectProperty extends JobProperty<AbstractProject<?, ?>> {
public class JiraProjectProperty extends JobProperty<Job<?, ?>> {

/**
* Used to find {@link JiraSite}. Matches {@link JiraSite#getName()}. Always
Expand Down Expand Up @@ -84,7 +83,7 @@ public DescriptorImpl() {
@Override
@SuppressWarnings("unchecked")
public boolean isApplicable(Class<? extends Job> jobType) {
return AbstractProject.class.isAssignableFrom(jobType);
return Job.class.isAssignableFrom(jobType);
}

@Override
Expand Down

0 comments on commit 7600eb9

Please sign in to comment.