Package hudson.plugins.jira
Class JiraIssueUpdater
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Recorder
-
- hudson.plugins.jira.JiraIssueUpdater
-
- All Implemented Interfaces:
ExtensionPoint
,hudson.matrix.MatrixAggregatable
,Describable<Publisher>
,BuildStep
,SimpleBuildStep
public class JiraIssueUpdater extends Recorder implements hudson.matrix.MatrixAggregatable, SimpleBuildStep
Parses build changelog for Jira issue IDs and then updates Jira issues accordingly.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JiraIssueUpdater.DescriptorImpl
-
Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
-
Field Summary
Fields Modifier and Type Field Description static JiraIssueUpdater.DescriptorImpl
DESCRIPTOR
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description JiraIssueUpdater(AbstractIssueSelector issueSelector, SCM scm, List<String> labels)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description hudson.matrix.MatrixAggregator
createAggregator(hudson.matrix.MatrixBuild build, Launcher launcher, BuildListener listener)
JiraIssueUpdater.DescriptorImpl
getDescriptor()
AbstractIssueSelector
getIssueSelector()
List<String>
getLabels()
BuildStepMonitor
getRequiredMonitorService()
SCM
getScm()
void
perform(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener)
-
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, perform, prebuild
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, perform, prebuild
-
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
-
-
-
Field Detail
-
DESCRIPTOR
@Extension public static final JiraIssueUpdater.DescriptorImpl DESCRIPTOR
-
-
Constructor Detail
-
JiraIssueUpdater
@DataBoundConstructor public JiraIssueUpdater(AbstractIssueSelector issueSelector, SCM scm, List<String> labels)
-
-
Method Detail
-
perform
public void perform(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException
- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
InterruptedException
IOException
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
- Specified by:
getRequiredMonitorService
in interfaceBuildStep
-
getDescriptor
public JiraIssueUpdater.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<Publisher>
- Overrides:
getDescriptor
in classRecorder
-
getIssueSelector
public AbstractIssueSelector getIssueSelector()
-
getScm
public SCM getScm()
-
createAggregator
public hudson.matrix.MatrixAggregator createAggregator(hudson.matrix.MatrixBuild build, Launcher launcher, BuildListener listener)
- Specified by:
createAggregator
in interfacehudson.matrix.MatrixAggregatable
-
-