Class ComponentSource
java.lang.Object
se.diabol.jenkins.pipeline.source.ComponentSource
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
FlowComponentSource,FreestyleComponentSource
Builds the model of a component from a kind of job: a chain of jobs with downstream dependencies, or a Pipeline
job. The first source that supports a job owns it, in extension order.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidStops the build with the given number.static ExtensionList<ComponentSource> all()static ComponentSourceThe source that owns the job.abstract Collection<? extends Job<?, ?>> The jobs that make up the component, which the view lists as its items.voidproceedInput(Job<?, ?> job, int buildNumber) Lets the build with the given number continue past the input step it is waiting at.voidproceedInput(Job<?, ?> job, int buildNumber, String task) Lets the build continue past the input step the task with the given id is waiting at, or past the first one when no task is named or the source does not tell them apart.voidSchedules a build of the job like the one with the given number: same causes and parameters.voidRebuilds asrebuild(Job, int)does, or when a stage is named, restarts the build from that stage where the kind of job supports it.abstract Componentresolve(ComponentRequest request) Builds the component; a failure is reported to the user as the component's error.abstract booleanWhether this source knows how to build a component starting at the given job.voidtriggerManual(Job<?, ?> job, Job<?, ?> upstream, int upstreamBuild, ItemGroup<? extends TopLevelItem> context) Performs the manual trigger of the job, continuing from the given build of the upstream job.
-
Constructor Details
-
ComponentSource
public ComponentSource()
-
-
Method Details
-
supports
Whether this source knows how to build a component starting at the given job. -
resolve
Builds the component; a failure is reported to the user as the component's error.- Throws:
PipelineException
-
jobsOf
The jobs that make up the component, which the view lists as its items. -
rebuild
Schedules a build of the job like the one with the given number: same causes and parameters.- Throws:
PipelineException
-
rebuild
Rebuilds asrebuild(Job, int)does, or when a stage is named, restarts the build from that stage where the kind of job supports it.- Throws:
PipelineException
-
abort
Stops the build with the given number.- Throws:
PipelineException
-
triggerManual
public void triggerManual(Job<?, ?> job, Job<?, throws PipelineException?> upstream, int upstreamBuild, ItemGroup<? extends TopLevelItem> context) Performs the manual trigger of the job, continuing from the given build of the upstream job.- Throws:
PipelineException
-
proceedInput
Lets the build with the given number continue past the input step it is waiting at.- Throws:
PipelineException
-
proceedInput
Lets the build continue past the input step the task with the given id is waiting at, or past the first one when no task is named or the source does not tell them apart.- Throws:
PipelineException
-
all
-
forJob
The source that owns the job.- Throws:
PipelineException
-