public class BuildPipelineTrigger
extends hudson.tasks.Notifier
implements hudson.model.DependecyDeclarer
Modifier and Type | Class and Description |
---|---|
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
|
hudson.tasks.Publisher.DescriptorExtensionListImpl
Constructor and Description |
---|
BuildPipelineTrigger(String downstreamProjectNames,
List<hudson.plugins.parameterizedtrigger.AbstractBuildParameters> configs)
Construct the trigger setting the project name and manual build promotion option
|
Modifier and Type | Method and Description |
---|---|
void |
buildDependencyGraph(hudson.model.AbstractProject owner,
hudson.model.DependencyGraph graph)
this method is required to rebuild the dependency graph of the downstream project
|
List<hudson.plugins.parameterizedtrigger.AbstractBuildParameters> |
getConfigs() |
String |
getDownstreamProjectNames() |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
boolean |
needsToRunAfterFinalized() |
boolean |
onDownstreamProjectDeleted(String oldName)
Deletes a project from downstreamProjectNames.
|
boolean |
onDownstreamProjectRenamed(String oldName,
String newName)
Renames a project contained in downstreamProjectNames
|
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
void |
removeDownstreamTrigger(BuildPipelineTrigger bpTrigger,
hudson.model.AbstractProject<?,?> ownerProject,
String downstreamProjectName)
Removes a downstream trigger (BuildPipelineTrigger) from a project.
|
void |
setDownstreamProjectNames(String downstreamProjectNames) |
@DataBoundConstructor public BuildPipelineTrigger(String downstreamProjectNames, List<hudson.plugins.parameterizedtrigger.AbstractBuildParameters> configs)
downstreamProjectNames
- - the job name of the downstream buildconfigs
- - the build parameterspublic String getDownstreamProjectNames()
public void setDownstreamProjectNames(String downstreamProjectNames)
public List<hudson.plugins.parameterizedtrigger.AbstractBuildParameters> getConfigs()
public void buildDependencyGraph(hudson.model.AbstractProject owner, hudson.model.DependencyGraph graph)
buildDependencyGraph
in interface jenkins.model.DependencyDeclarer
owner
- ownergraph
- graphpublic boolean needsToRunAfterFinalized()
needsToRunAfterFinalized
in class hudson.tasks.Publisher
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService
in interface hudson.tasks.BuildStep
public boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws InterruptedException, IOException
perform
in interface hudson.tasks.BuildStep
perform
in class hudson.tasks.BuildStepCompatibilityLayer
InterruptedException
IOException
public boolean onDownstreamProjectRenamed(String oldName, String newName)
oldName
- - The old name of the projectnewName
- - The new name of the projectpublic boolean onDownstreamProjectDeleted(String oldName)
oldName
- - Project to be deletedonDownstreamProjectRenamed(String, String)
public void removeDownstreamTrigger(BuildPipelineTrigger bpTrigger, hudson.model.AbstractProject<?,?> ownerProject, String downstreamProjectName)
bpTrigger
- - The BuildPipelineTrigger to be removedownerProject
- - The AbstractProject from which to removed the BuildPipelineTriggerdownstreamProjectName
- - The name of the AbstractProject associated with the BuildPipelineTriggerCopyright © 2004–2017. All rights reserved.