public class RundeckNotifier extends Notifier implements SimpleBuildStep
Notifier
that runs a job on Rundeck (via the RundeckClientManager
)Modifier and Type | Class and Description |
---|---|
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. |
Publisher.DescriptorExtensionListImpl
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
BuildStep.PublisherList
ExtensionPoint.LegacyInstancesAreScopedToHudson
BUILDERS, PUBLISHERS
Constructor and Description |
---|
RundeckNotifier(String rundeckInstance,
String jobId,
String options,
String nodeFilters,
String tags,
Boolean shouldWaitForRundeckJob,
Boolean shouldFailTheBuild,
Boolean notifyOnAllStatus,
Boolean includeRundeckLogs,
Boolean tailLog,
String jobUser,
Secret jobPassword,
Secret jobToken) |
Modifier and Type | Method and Description |
---|---|
RundeckNotifier.RundeckDescriptor |
getDescriptor() |
Boolean |
getIncludeRundeckLogs() |
String |
getJobId() |
String |
getJobIdentifier() |
Secret |
getJobPassword() |
Secret |
getJobToken() |
String |
getJobUser()
optional non default rundeck user for actual job
|
String |
getNodeFilters() |
Boolean |
getNotifyOnAllStatus() |
String |
getOptions() |
String |
getPassword() |
Action |
getProjectAction(AbstractProject<?,?> project) |
BuildStepMonitor |
getRequiredMonitorService() |
String |
getRundeckInstance() |
Boolean |
getShouldFailTheBuild() |
Boolean |
getShouldWaitForRundeckJob() |
String |
getTag() |
String |
getTags() |
String[] |
getTagsList() |
Boolean |
getTailLog() |
String |
getToken() |
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
|
void |
perform(Run<?,?> run,
FilePath filePath,
Launcher launcher,
TaskListener listener) |
Object |
readResolve() |
all, getProjectAction, prebuild
getProjectActions, perform, perform, prebuild
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProjectActions, perform, prebuild
@DataBoundConstructor public RundeckNotifier(String rundeckInstance, String jobId, String options, String nodeFilters, String tags, Boolean shouldWaitForRundeckJob, Boolean shouldFailTheBuild, Boolean notifyOnAllStatus, Boolean includeRundeckLogs, Boolean tailLog, String jobUser, Secret jobPassword, Secret jobToken)
public Object readResolve()
public void perform(@Nonnull Run<?,?> run, @Nonnull FilePath filePath, @Nonnull Launcher launcher, @Nonnull TaskListener listener) throws IOException
perform
in interface SimpleBuildStep
IOException
public Action getProjectAction(AbstractProject<?,?> project)
getProjectAction
in interface BuildStep
getProjectAction
in class BuildStepCompatibilityLayer
public boolean needsToRunAfterFinalized()
needsToRunAfterFinalized
in class Publisher
public BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService
in interface BuildStep
public String getRundeckInstance()
public String getJobIdentifier()
public String getJobId()
public String getOptions()
public String getNodeFilters()
public String getTag()
public String getTags()
public String[] getTagsList()
public Boolean getShouldWaitForRundeckJob()
public Boolean getShouldFailTheBuild()
public Boolean getNotifyOnAllStatus()
public Boolean getIncludeRundeckLogs()
public Boolean getTailLog()
public String getJobUser()
public Secret getJobPassword()
public Secret getJobToken()
public String getPassword()
public String getToken()
public RundeckNotifier.RundeckDescriptor getDescriptor()
getDescriptor
in interface Describable<Publisher>
getDescriptor
in class Notifier
Copyright © 2016–2022. All rights reserved.