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
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic classstatic enumfinal classNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the parameter in the build.getBuildVariables() to enable the job build, regardless of scm changes.static final StringThe name of the new variable which stores if the job is buildable or not.static final StringThe name of the new variable which stores the status of the current job.static final StringA prefix for env vars which should be loaded inprebuild(Build, BuildListener).Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
ConstructorsConstructorDescriptionMultiJobBuilder(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 TypeMethodDescriptionvoidbuildDependencyGraph(AbstractProject owner, DependencyGraph graph) protected booleancheckPhaseTermination(SubTask subTask, List<SubTask> subTasks, BuildListener listener) booleanevalCondition(String condition, AbstractBuild<?, ?> build, BuildListener listener) expandToken(String toExpand, AbstractBuild<?, ?> build, BuildListener listener) booleanonJobDeleted(String oldName) booleanonJobRenamed(String oldName, String newName) booleanperform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) booleanphaseNameExist(String phaseName) booleanprebuild(Build build, BuildListener listener) voidsetContinuationCondition(MultiJobBuilder.ContinuationCondition continuationCondition) voidsetExecutionType(MultiJobBuilder.ExecutionType executionType) voidsetPhaseJobs(List<PhaseJobsConfig> phaseJobs) voidsetPhaseName(String phaseName) Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorServiceMethods 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 inStatusJobenum.- 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 aretruewhen the job is buildable, orfalsewhen 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 theMultiJobResumeControlaction- 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:
performin interfaceBuildStep- Overrides:
performin classBuildStepCompatibilityLayer- Throws:
InterruptedExceptionIOException
-
checkPhaseTermination
protected boolean checkPhaseTermination(SubTask subTask, List<SubTask> subTasks, BuildListener listener) -
getPhaseName
-
setPhaseName
-
getPhaseJobs
-
setPhaseJobs
-
phaseNameExist
-
buildDependencyGraph
- Specified by:
buildDependencyGraphin interfaceDependencyDeclarer
-
onJobRenamed
-
onJobDeleted
-
getContinuationCondition
-
setContinuationCondition
-
setExecutionType
-
getExecutionType
-
getQuietPeriodGroovy
-
prebuild
-