public class MultiJobBuilder
extends hudson.tasks.Builder
implements hudson.model.DependecyDeclarer
Modifier and Type | Class and Description |
---|---|
static class |
MultiJobBuilder.ContinuationCondition |
static class |
MultiJobBuilder.DescriptorImpl |
static class |
MultiJobBuilder.ExecutionType |
class |
MultiJobBuilder.SubJobWorker |
Modifier and Type | Field and Description |
---|---|
static String |
BUILD_ALWAYS_KEY
The name of the parameter in the build.getBuildVariables() to enable the job build, regardless
of scm changes.
|
static String |
JOB_IS_BUILDABLE
The name of the new variable which stores if the job is buildable or not.
|
static String |
JOB_STATUS
The name of the new variable which stores the status of the current job.
|
static String |
PERSISTENT_VARS_PREFIX
A prefix for env vars which should be loaded in
prebuild(Build, BuildListener) . |
Constructor and Description |
---|
MultiJobBuilder(String phaseName,
List<PhaseJobsConfig> phaseJobs,
MultiJobBuilder.ContinuationCondition continuationCondition)
Deprecated.
|
MultiJobBuilder(String phaseName,
List<PhaseJobsConfig> phaseJobs,
MultiJobBuilder.ContinuationCondition continuationCondition,
MultiJobBuilder.ExecutionType executionType) |
Modifier and Type | Method and Description |
---|---|
void |
buildDependencyGraph(hudson.model.AbstractProject owner,
hudson.model.DependencyGraph graph) |
protected boolean |
checkPhaseTermination(SubTask subTask,
List<SubTask> subTasks,
hudson.model.BuildListener listener) |
boolean |
evalCondition(String condition,
hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener) |
String |
expandToken(String toExpand,
hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener) |
MultiJobBuilder.ContinuationCondition |
getContinuationCondition() |
MultiJobBuilder.ExecutionType |
getExecutionType() |
List<PhaseJobsConfig> |
getPhaseJobs() |
String |
getPhaseName() |
boolean |
onJobDeleted(String oldName) |
boolean |
onJobRenamed(String oldName,
String newName) |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
boolean |
phaseNameExist(String phaseName) |
boolean |
prebuild(hudson.model.Build build,
hudson.model.BuildListener listener) |
void |
setContinuationCondition(MultiJobBuilder.ContinuationCondition continuationCondition) |
void |
setExecutionType(MultiJobBuilder.ExecutionType executionType) |
void |
setPhaseJobs(List<PhaseJobsConfig> phaseJobs) |
void |
setPhaseName(String phaseName) |
public static final String BUILD_ALWAYS_KEY
public static final String JOB_STATUS
StatusJob
enum.StatusJob.isBuildable()
,
Constant Field Valuespublic static final String JOB_IS_BUILDABLE
StatusJob.isBuildable()
.
The only values of this variable are true
when the job is buildable,
or false
when the job is not buildable.StatusJob.isBuildable()
,
Constant Field Valuespublic static final String PERSISTENT_VARS_PREFIX
prebuild(Build, BuildListener)
.
this will happen only when build was triggered by the MultiJobResumeControl
action@Deprecated public MultiJobBuilder(String phaseName, List<PhaseJobsConfig> phaseJobs, MultiJobBuilder.ContinuationCondition continuationCondition)
@DataBoundConstructor public MultiJobBuilder(String phaseName, List<PhaseJobsConfig> phaseJobs, MultiJobBuilder.ContinuationCondition continuationCondition, MultiJobBuilder.ExecutionType executionType)
public String expandToken(String toExpand, hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener)
public boolean evalCondition(String condition, hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener)
public boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws InterruptedException, IOException
perform
in interface hudson.tasks.BuildStep
perform
in class hudson.tasks.BuildStepCompatibilityLayer
InterruptedException
IOException
protected boolean checkPhaseTermination(SubTask subTask, List<SubTask> subTasks, hudson.model.BuildListener listener)
public String getPhaseName()
public void setPhaseName(String phaseName)
public List<PhaseJobsConfig> getPhaseJobs()
public void setPhaseJobs(List<PhaseJobsConfig> phaseJobs)
public boolean phaseNameExist(String phaseName)
public void buildDependencyGraph(hudson.model.AbstractProject owner, hudson.model.DependencyGraph graph)
buildDependencyGraph
in interface jenkins.model.DependencyDeclarer
public boolean onJobDeleted(String oldName)
public MultiJobBuilder.ContinuationCondition getContinuationCondition()
public void setContinuationCondition(MultiJobBuilder.ContinuationCondition continuationCondition)
public void setExecutionType(MultiJobBuilder.ExecutionType executionType)
public MultiJobBuilder.ExecutionType getExecutionType()
public boolean prebuild(hudson.model.Build build, hudson.model.BuildListener listener)
prebuild
in class hudson.tasks.Builder
Copyright © 2016–2017. All rights reserved.