hudson.plugins.downstream_ext
Class DownstreamTrigger
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
hudson.plugins.downstream_ext.DownstreamTrigger
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.DependecyDeclarer, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep
public class DownstreamTrigger
- extends hudson.tasks.Notifier
- implements hudson.model.DependecyDeclarer
Triggers builds of other projects.
This class was inspired by BuildTrigger (rev. 21890) -
but has changed significantly in the mean time.
| 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 |
| Methods inherited from class hudson.tasks.Notifier |
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 |
DownstreamTrigger
@DataBoundConstructor
public DownstreamTrigger(java.lang.String childProjects,
java.lang.String threshold,
boolean onlyIfSCMChanges,
java.lang.String strategy)
DownstreamTrigger
public DownstreamTrigger(java.lang.String childProjects,
hudson.model.Result threshold,
boolean onlyIfSCMChanges,
DownstreamTrigger.Strategy strategy)
getChildProjectsValue
public java.lang.String getChildProjectsValue()
getThreshold
public hudson.model.Result getThreshold()
isOnlyIfSCMChanges
public boolean isOnlyIfSCMChanges()
getChildProjects
public java.util.List<hudson.model.AbstractProject> getChildProjects()
getStrategy
public DownstreamTrigger.Strategy getStrategy()
getRequiredMonitorService
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
- Specified by:
getRequiredMonitorService in interface hudson.tasks.BuildStep
perform
public boolean perform(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
- Specified by:
perform in interface hudson.tasks.BuildStep- Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
buildDependencyGraph
public void buildDependencyGraph(hudson.model.AbstractProject owner,
hudson.model.DependencyGraph graph)
-
- Specified by:
buildDependencyGraph in interface hudson.model.DependecyDeclarer
needsToRunAfterFinalized
public boolean needsToRunAfterFinalized()
- Overrides:
needsToRunAfterFinalized in class hudson.tasks.Publisher
onJobRenamed
public boolean onJobRenamed(java.lang.String oldName,
java.lang.String newName)
- Called from
DownstreamTrigger.DescriptorImpl.ItemListenerImpl when a job is renamed.
- Returns:
- true
if this
DownstreamTrigger is changed and needs to be saved.
Copyright © 2010. All Rights Reserved.