au.com.centrumsystems.hudson.plugin.buildpipeline.trigger
Class BuildPipelineTrigger
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
hudson.tasks.BuildTrigger
au.com.centrumsystems.hudson.plugin.buildpipeline.trigger.BuildPipelineTrigger
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.DependecyDeclarer, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep
public class BuildPipelineTrigger
- extends hudson.tasks.BuildTrigger
- implements hudson.model.DependecyDeclarer
The build pipeline trigger allows the creation of downstream jobs which aren't triggered automatically.
This allows us to have manual "approval" steps in the process where jobs are manually promoted along the pipeline
by a user pressing a button on the view.
- Author:
- Centrum Systems
|
Nested Class Summary |
static class |
BuildPipelineTrigger.DescriptorImpl
Set the descriptor for build pipeline trigger class This descriptor is only attached to Build Trigger Post Build action in JOB
configuration 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 |
| Fields inherited from interface hudson.tasks.BuildStep |
BUILDERS, PUBLISHERS |
|
Constructor Summary |
BuildPipelineTrigger(java.lang.String downstreamProjectName,
boolean isManualBuild)
Construct the trigger setting the project name and manual build promotion option |
|
Method Summary |
void |
buildDependencyGraph(hudson.model.AbstractProject owner,
hudson.model.DependencyGraph graph)
this method is required to rebuild the dependency graph of the downstream project |
java.lang.String |
getDownstreamProjectName()
|
boolean |
getIsManualBuild()
getIsManualBuild method is required to retrieve the value of isManualBuild from Hudson stapler framework
Otherwise, Hudson will not be able to set the value of "Require manual build execution" in the build trigger post build actions |
void |
setDownstreamProjectName(java.lang.String downstreamProjectName)
|
void |
setManualBuild(boolean isManualBuild)
|
| Methods inherited from class hudson.tasks.BuildTrigger |
execute, execute, getChildProjects, getChildProjectsValue, getRequiredMonitorService, getThreshold, hasSame, needsToRunAfterFinalized, onJobRenamed, perform |
| Methods inherited from class hudson.tasks.Recorder |
getDescriptor |
| Methods inherited from class hudson.tasks.Publisher |
all, getProjectAction, prebuild |
| Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer |
getProjectAction, 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 |
getProjectAction, getProjectActions, prebuild |
BuildPipelineTrigger
@DataBoundConstructor
public BuildPipelineTrigger(java.lang.String downstreamProjectName,
boolean isManualBuild)
- Construct the trigger setting the project name and manual build promotion option
- Parameters:
downstreamProjectName - the job name of the downstream buildisManualBuild - flag indicating whether it is a manual trigger
getIsManualBuild
public boolean getIsManualBuild()
- getIsManualBuild method is required to retrieve the value of isManualBuild from Hudson stapler framework
Otherwise, Hudson will not be able to set the value of "Require manual build execution" in the build trigger post build actions
- Returns:
- is manual build flag
setManualBuild
public void setManualBuild(boolean isManualBuild)
getDownstreamProjectName
public java.lang.String getDownstreamProjectName()
setDownstreamProjectName
public void setDownstreamProjectName(java.lang.String downstreamProjectName)
buildDependencyGraph
public void buildDependencyGraph(hudson.model.AbstractProject owner,
hudson.model.DependencyGraph graph)
- this method is required to rebuild the dependency graph of the downstream project
- Specified by:
buildDependencyGraph in interface hudson.model.DependecyDeclarer- Overrides:
buildDependencyGraph in class hudson.tasks.BuildTrigger
- Parameters:
owner - ownergraph - graph
Copyright © 2004-2011. All Rights Reserved.