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 |
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.
|
Constructor and Description |
---|
MultiJobBuilder(String phaseName,
List<PhaseJobsConfig> phaseJobs,
MultiJobBuilder.ContinuationCondition continuationCondition) |
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() |
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) |
void |
setContinuationCondition(MultiJobBuilder.ContinuationCondition continuationCondition) |
void |
setPhaseJobs(List<PhaseJobsConfig> phaseJobs) |
void |
setPhaseName(String phaseName) |
all, getDescriptor, getRequiredMonitorService, prebuild
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 Values@DataBoundConstructor public MultiJobBuilder(String phaseName, List<PhaseJobsConfig> phaseJobs, MultiJobBuilder.ContinuationCondition continuationCondition)
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)
Copyright © 2004-2015. All Rights Reserved.