Class ManualTriggerProvider
java.lang.Object
se.diabol.jenkins.pipeline.freestyle.ManualTriggerProvider
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
BuildPipelineManualTriggers,ManualStepTrigger.Provider
Knows which projects are triggered by a person rather than automatically, and how to perform such a trigger. The
Build Pipeline plugin's manual trigger is the one implementation that ships with this plugin.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionList<ManualTriggerProvider> all()static List<AbstractProject<?, ?>> manualUpstreams(AbstractProject<?, ?> project) abstract List<AbstractProject<?, ?>> manualUpstreamsOf(AbstractProject<?, ?> project) The upstream projects whose manual trigger leads to the given project, in configuration order.abstract booleantrigger(AbstractProject<?, ?> project, AbstractProject<?, ?> upstream, int upstreamBuild, ItemGroup<? extends TopLevelItem> context) Performs the manual trigger of the project, continuing from the given build of the upstream project.
-
Constructor Details
-
ManualTriggerProvider
public ManualTriggerProvider()
-
-
Method Details
-
manualUpstreamsOf
The upstream projects whose manual trigger leads to the given project, in configuration order. -
trigger
public abstract boolean trigger(AbstractProject<?, ?> project, AbstractProject<?, throws PipelineException?> upstream, int upstreamBuild, ItemGroup<? extends TopLevelItem> context) Performs the manual trigger of the project, continuing from the given build of the upstream project.- Returns:
- false when this provider does not own the relation between the two projects
- Throws:
PipelineException
-
all
-
manualUpstreams
-