Class BuildPipelineManualTriggers
java.lang.Object
se.diabol.jenkins.pipeline.freestyle.ManualTriggerProvider
se.diabol.jenkins.pipeline.integration.buildpipeline.BuildPipelineManualTriggers
- All Implemented Interfaces:
ExtensionPoint
Manual steps as the Build Pipeline plugin defines them: a downstream job listed in an upstream job's "Build other
projects (manual step)" post-build action. Triggering one hands the upstream build's parameters down, exactly as
the Build Pipeline view does.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<AbstractProject<?, ?>> manualUpstreamsOf(AbstractProject<?, ?> project) The upstream projects whose manual trigger leads to the given project, in configuration order.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.Methods inherited from class se.diabol.jenkins.pipeline.freestyle.ManualTriggerProvider
all, manualUpstreams
-
Constructor Details
-
BuildPipelineManualTriggers
public BuildPipelineManualTriggers()
-
-
Method Details
-
manualUpstreamsOf
Description copied from class:ManualTriggerProviderThe upstream projects whose manual trigger leads to the given project, in configuration order.- Specified by:
manualUpstreamsOfin classManualTriggerProvider
-
trigger
public boolean trigger(AbstractProject<?, ?> project, AbstractProject<?, throws PipelineException?> upstream, int upstreamBuild, ItemGroup<? extends TopLevelItem> context) Description copied from class:ManualTriggerProviderPerforms the manual trigger of the project, continuing from the given build of the upstream project.- Specified by:
triggerin classManualTriggerProvider- Returns:
- false when this provider does not own the relation between the two projects
- Throws:
PipelineException
-