org.jenkinsci.plugins.rundeck
Class RundeckNotifier
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
org.jenkinsci.plugins.rundeck.RundeckNotifier
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep
public class RundeckNotifier
- extends hudson.tasks.Notifier
Jenkins Notifier that runs a job on RunDeck (via the RundeckClient)
- Author:
- Vincent Behar
| Nested classes/interfaces inherited from class hudson.tasks.Publisher |
hudson.tasks.Publisher.DescriptorExtensionListImpl |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Nested classes/interfaces inherited from interface hudson.tasks.BuildStep |
hudson.tasks.BuildStep.PublisherList |
| Fields inherited from interface hudson.tasks.BuildStep |
BUILDERS, PUBLISHERS |
|
Constructor Summary |
RundeckNotifier(java.lang.String jobId,
java.lang.String options,
java.lang.String tag,
java.lang.Boolean shouldWaitForRundeckJob,
java.lang.Boolean shouldFailTheBuild)
|
| Methods inherited from class hudson.tasks.Publisher |
all, getProjectAction, prebuild |
| Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer |
getProjectActions, 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 |
getProjectActions, prebuild |
RundeckNotifier
@DataBoundConstructor
public RundeckNotifier(java.lang.String jobId,
java.lang.String options,
java.lang.String tag,
java.lang.Boolean shouldWaitForRundeckJob,
java.lang.Boolean shouldFailTheBuild)
perform
public boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws java.lang.InterruptedException,
java.io.IOException
- Specified by:
perform in interface hudson.tasks.BuildStep- Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
- Throws:
java.lang.InterruptedException
java.io.IOException
getProjectAction
public hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
- Specified by:
getProjectAction in interface hudson.tasks.BuildStep- Overrides:
getProjectAction in class hudson.tasks.BuildStepCompatibilityLayer
needsToRunAfterFinalized
public boolean needsToRunAfterFinalized()
- If we should not fail the build, we need to run after finalized, so that the result of "perform" is not used by
Jenkins
- Overrides:
needsToRunAfterFinalized in class hudson.tasks.Publisher
getRequiredMonitorService
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getJobIdentifier
public java.lang.String getJobIdentifier()
getJobId
public java.lang.String getJobId()
getOptions
public java.lang.String getOptions()
getTag
public java.lang.String getTag()
getShouldWaitForRundeckJob
public java.lang.Boolean getShouldWaitForRundeckJob()
getShouldFailTheBuild
public java.lang.Boolean getShouldFailTheBuild()
getDescriptor
public RundeckNotifier.RundeckDescriptor getDescriptor()
- Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>- Overrides:
getDescriptor in class hudson.tasks.Notifier
Copyright © 2004-2011. All Rights Reserved.