Class MultiJobBuilder
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
com.tikal.jenkins.plugins.multijob.MultiJobBuilder
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,DependencyDeclarer
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static class
static enum
final class
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The name of the parameter in the build.getBuildVariables() to enable the job build, regardless of scm changes.static final String
The name of the new variable which stores if the job is buildable or not.static final String
The name of the new variable which stores the status of the current job.static final String
A prefix for env vars which should be loaded inprebuild(Build, BuildListener)
.Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
ConstructorDescriptionMultiJobBuilder
(String phaseName, List<PhaseJobsConfig> phaseJobs, MultiJobBuilder.ContinuationCondition continuationCondition) Deprecated.MultiJobBuilder
(String phaseName, List<PhaseJobsConfig> phaseJobs, MultiJobBuilder.ContinuationCondition continuationCondition, MultiJobBuilder.ExecutionType executionType, String quietPeriodGroovy) -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildDependencyGraph
(AbstractProject owner, DependencyGraph graph) protected boolean
checkPhaseTermination
(SubTask subTask, List<SubTask> subTasks, BuildListener listener) boolean
evalCondition
(String condition, AbstractBuild<?, ?> build, BuildListener listener) expandToken
(String toExpand, AbstractBuild<?, ?> build, BuildListener listener) boolean
onJobDeleted
(String oldName) boolean
onJobRenamed
(String oldName, String newName) boolean
perform
(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) boolean
phaseNameExist
(String phaseName) boolean
prebuild
(Build build, BuildListener listener) void
setContinuationCondition
(MultiJobBuilder.ContinuationCondition continuationCondition) void
setExecutionType
(MultiJobBuilder.ExecutionType executionType) void
setPhaseJobs
(List<PhaseJobsConfig> phaseJobs) void
setPhaseName
(String phaseName) Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
-
Field Details
-
BUILD_ALWAYS_KEY
The name of the parameter in the build.getBuildVariables() to enable the job build, regardless of scm changes.- See Also:
-
JOB_STATUS
The name of the new variable which stores the status of the current job. The state is the name of the corresponding value inStatusJob
enum.- Since:
- 1.0.0
- See Also:
-
JOB_IS_BUILDABLE
The name of the new variable which stores if the job is buildable or not. This value is getted from theStatusJob.isBuildable()
. The only values of this variable aretrue
when the job is buildable, orfalse
when the job is not buildable.- Since:
- 1.0.0
- See Also:
-
PERSISTENT_VARS_PREFIX
A prefix for env vars which should be loaded inprebuild(Build, BuildListener)
. this will happen only when build was triggered by theMultiJobResumeControl
action- Since:
- 1.0.0
- See Also:
-
-
Constructor Details
-
MultiJobBuilder
@Deprecated public MultiJobBuilder(String phaseName, List<PhaseJobsConfig> phaseJobs, MultiJobBuilder.ContinuationCondition continuationCondition) Deprecated. -
MultiJobBuilder
@DataBoundConstructor public MultiJobBuilder(String phaseName, List<PhaseJobsConfig> phaseJobs, MultiJobBuilder.ContinuationCondition continuationCondition, MultiJobBuilder.ExecutionType executionType, String quietPeriodGroovy)
-
-
Method Details
-
expandToken
-
evalCondition
-
perform
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Throws:
InterruptedException
IOException
-
checkPhaseTermination
protected boolean checkPhaseTermination(SubTask subTask, List<SubTask> subTasks, BuildListener listener) -
getPhaseName
-
setPhaseName
-
getPhaseJobs
-
setPhaseJobs
-
phaseNameExist
-
buildDependencyGraph
- Specified by:
buildDependencyGraph
in interfaceDependencyDeclarer
-
onJobRenamed
-
onJobDeleted
-
getContinuationCondition
-
setContinuationCondition
-
setExecutionType
-
getExecutionType
-
getQuietPeriodGroovy
-
prebuild
-