Class FreestyleComponentSource
java.lang.Object
se.diabol.jenkins.pipeline.source.ComponentSource
se.diabol.jenkins.pipeline.freestyle.FreestyleComponentSource
- All Implemented Interfaces:
ExtensionPoint
Components made of chained jobs. The chain downstream of the first job is laid out once; each build of the first
job becomes a pipeline instance whose tasks are the builds it triggered.
-
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 PipelineinstanceOf(AbstractBuild<?, ?> build, ViewSettings settings) The pipeline instance that starts at the given build: the chain downstream of its project laid out as a component of that project shows it, with the builds the given one triggered.Collection<? extends Job<?, ?>> The jobs that make up the component, which the view lists as its items.voidSchedules a build of the job like the one with the given number: same causes and parameters.resolve(ComponentRequest request) Builds the component; a failure is reported to the user as the component's error.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.Methods inherited from class se.diabol.jenkins.pipeline.source.ComponentSource
all, forJob, proceedInput, proceedInput, rebuild
-
Constructor Details
-
FreestyleComponentSource
public FreestyleComponentSource()
-
-
Method Details
-
supports
Description copied from class:ComponentSourceWhether this source knows how to build a component starting at the given job.- Specified by:
supportsin classComponentSource
-
jobsOf
Description copied from class:ComponentSourceThe jobs that make up the component, which the view lists as its items.- Specified by:
jobsOfin classComponentSource
-
resolve
Description copied from class:ComponentSourceBuilds the component; a failure is reported to the user as the component's error.- Specified by:
resolvein classComponentSource- Throws:
PipelineException
-
instanceOf
public static Pipeline instanceOf(AbstractBuild<?, ?> build, ViewSettings settings) throws PipelineExceptionThe pipeline instance that starts at the given build: the chain downstream of its project laid out as a component of that project shows it, with the builds the given one triggered. For a run of another kind of job that started the build.- Throws:
PipelineException
-
rebuild
Description copied from class:ComponentSourceSchedules a build of the job like the one with the given number: same causes and parameters.- Overrides:
rebuildin classComponentSource- Throws:
PipelineException
-
abort
Description copied from class:ComponentSourceStops the build with the given number.- Overrides:
abortin classComponentSource- Throws:
PipelineException
-
triggerManual
public void triggerManual(Job<?, ?> job, Job<?, throws PipelineException?> upstream, int upstreamBuild, ItemGroup<? extends TopLevelItem> context) Description copied from class:ComponentSourcePerforms the manual trigger of the job, continuing from the given build of the upstream job.- Overrides:
triggerManualin classComponentSource- Throws:
PipelineException
-