Package se.diabol.jenkins.pipeline
Class ManualStepTrigger
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
se.diabol.jenkins.pipeline.ManualStepTrigger
- All Implemented Interfaces:
ExtensionPoint,Describable<Publisher>,BuildStep,DependencyDeclarer
Post-build action that makes other jobs manual steps of the pipeline. They count as downstream of this job, so the
view shows them in the chain, but nothing starts them automatically: a person does, with the button on the task.
The build that is started carries the upstream build's parameters, with the downstream job's defaults for the
rest, and an upstream cause, so it belongs to the same pipeline instance.
This is the plugin's own replacement for the Build Pipeline plugin's manual trigger, which is still recognised when that plugin is installed.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classRecognises the manual steps this action defines and performs them.static classKeeps the names current when a job is renamed or moved, as the core build trigger does.Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImplNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildDependencyGraph(AbstractProject owner, DependencyGraph graph) Lists the manual steps as downstream jobs without ever triggering them.Comma-separated names of the jobs, relative to this job's folder.List<AbstractProject<?, ?>> getDownstreamProjects(ItemGroup<?> context) The jobs the names resolve to in the given folder; names that resolve to nothing are left out.booleanperform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) Methods inherited from class hudson.tasks.Notifier
getDescriptorMethods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, prebuild
-
Constructor Details
-
ManualStepTrigger
-
-
Method Details
-
getDownstreamProjectNames
Comma-separated names of the jobs, relative to this job's folder. -
getDownstreamProjects
The jobs the names resolve to in the given folder; names that resolve to nothing are left out. -
getRequiredMonitorService
- Specified by:
getRequiredMonitorServicein interfaceBuildStep
-
perform
- Specified by:
performin interfaceBuildStep- Overrides:
performin classBuildStepCompatibilityLayer
-
buildDependencyGraph
Lists the manual steps as downstream jobs without ever triggering them.- Specified by:
buildDependencyGraphin interfaceDependencyDeclarer
-