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 |
| 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(String jobId,
String options,
String nodeFilters,
String tag,
Boolean shouldWaitForRundeckJob,
Boolean shouldFailTheBuild)
perform
public boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws InterruptedException,
IOException
- Specified by:
perform in interface hudson.tasks.BuildStep- Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
- Throws:
InterruptedException
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 String getJobIdentifier()
getJobId
public String getJobId()
getOptions
public String getOptions()
getNodeFilters
public String getNodeFilters()
getTag
public String getTag()
getShouldWaitForRundeckJob
public Boolean getShouldWaitForRundeckJob()
getShouldFailTheBuild
public 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-2012. All Rights Reserved.