org.jenkinsci.plugins.rundeck
Class RundeckNotifier

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Notifier
              extended by 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 Class Summary
static class RundeckNotifier.RundeckDescriptor
           
static class RundeckNotifier.RundeckExecutionBuildBadgeAction
          BuildBadgeAction used to display a Rundeck icon + a link to the Rundeck execution page, on the Jenkins build history and build result page.
 
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
 
Field Summary
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
RundeckNotifier(String jobId, String options, String nodeFilters, String tag, Boolean shouldWaitForRundeckJob, Boolean shouldFailTheBuild)
           
 
Method Summary
 RundeckNotifier.RundeckDescriptor getDescriptor()
           
 String getJobId()
           
 String getJobIdentifier()
           
 String getNodeFilters()
           
 String getOptions()
           
 hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
           
 hudson.tasks.BuildStepMonitor getRequiredMonitorService()
           
 Boolean getShouldFailTheBuild()
           
 Boolean getShouldWaitForRundeckJob()
           
 String getTag()
           
 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
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 
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
 

Constructor Detail

RundeckNotifier

@DataBoundConstructor
public RundeckNotifier(String jobId,
                                            String options,
                                            String nodeFilters,
                                            String tag,
                                            Boolean shouldWaitForRundeckJob,
                                            Boolean shouldFailTheBuild)
Method Detail

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-2014. All Rights Reserved.