Class PhaseJobsConfig
java.lang.Object
com.tikal.jenkins.plugins.multijob.PhaseJobsConfig
- All Implemented Interfaces:
Describable<PhaseJobsConfig>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
-
Constructor Summary
ConstructorDescriptionPhaseJobsConfig
(String jobName, String jobAlias, String jobProperties, boolean currParams, List<hudson.plugins.parameterizedtrigger.AbstractBuildParameters> configs, PhaseJobsConfig.KillPhaseOnJobResultCondition killPhaseOnJobResultCondition, boolean disableJob, boolean enableRetryStrategy, String parsingRulesPath, int maxRetries, boolean enableCondition, boolean abortAllJob, String condition, boolean buildOnlyIfSCMChanges, boolean applyConditionOnlyIfNoSCMChanges) PhaseJobsConfig
(String jobName, String jobAlias, String jobProperties, boolean currParams, List<hudson.plugins.parameterizedtrigger.AbstractBuildParameters> configs, PhaseJobsConfig.KillPhaseOnJobResultCondition killPhaseOnJobResultCondition, boolean disableJob, boolean enableRetryStrategy, String parsingRulesPath, int maxRetries, boolean enableCondition, boolean abortAllJob, String condition, boolean buildOnlyIfSCMChanges, boolean applyConditionOnlyIfNoSCMChanges, boolean aggregatedTestResults) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getActions
(AbstractBuild build, TaskListener listener, Job project, boolean isCurrentInclude) Create a list of actions to pass to the triggered build of project.List<hudson.plugins.parameterizedtrigger.AbstractBuildParameters>
boolean
boolean
getJobParameters
(AbstractBuild<?, ?> build, TaskListener listener) int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setAbortAllJob
(boolean abortAllJob) void
setAggregatedTestResults
(boolean aggregatedTestResults) void
setApplyConditionOnlyIfNoSCMChanges
(boolean applyConditionOnlyIfNoSCMChanges) void
setBuildOnlyIfSCMChanges
(boolean triggerOnlyIfSCMChanges) void
setCondition
(String condition) void
setCurrParams
(boolean currParams) void
setDisableJob
(boolean disableJob) void
setEnableCondition
(boolean enableCondition) void
setEnableRetryStrategy
(boolean enableRetryStrategy) void
setExposedSCM
(boolean exposedSCM) void
setJobAlias
(String jobAlias) void
setJobName
(String jobName) void
setJobProperties
(String jobProperties) void
setKillPhaseOnJobResultCondition
(PhaseJobsConfig.KillPhaseOnJobResultCondition killPhaseOnJobResultCondition) void
setMaxRetries
(int maxRetries) void
setParsingRulesPath
(String parsingRulesPath)
-
Constructor Details
-
PhaseJobsConfig
public PhaseJobsConfig(String jobName, String jobAlias, String jobProperties, boolean currParams, List<hudson.plugins.parameterizedtrigger.AbstractBuildParameters> configs, PhaseJobsConfig.KillPhaseOnJobResultCondition killPhaseOnJobResultCondition, boolean disableJob, boolean enableRetryStrategy, String parsingRulesPath, int maxRetries, boolean enableCondition, boolean abortAllJob, String condition, boolean buildOnlyIfSCMChanges, boolean applyConditionOnlyIfNoSCMChanges) -
PhaseJobsConfig
@DataBoundConstructor public PhaseJobsConfig(String jobName, String jobAlias, String jobProperties, boolean currParams, List<hudson.plugins.parameterizedtrigger.AbstractBuildParameters> configs, PhaseJobsConfig.KillPhaseOnJobResultCondition killPhaseOnJobResultCondition, boolean disableJob, boolean enableRetryStrategy, String parsingRulesPath, int maxRetries, boolean enableCondition, boolean abortAllJob, String condition, boolean buildOnlyIfSCMChanges, boolean applyConditionOnlyIfNoSCMChanges, boolean aggregatedTestResults)
-
-
Method Details
-
isBuildOnlyIfSCMChanges
public boolean isBuildOnlyIfSCMChanges() -
setBuildOnlyIfSCMChanges
public void setBuildOnlyIfSCMChanges(boolean triggerOnlyIfSCMChanges) -
isApplyConditionOnlyIfNoSCMChanges
public boolean isApplyConditionOnlyIfNoSCMChanges() -
setApplyConditionOnlyIfNoSCMChanges
public void setApplyConditionOnlyIfNoSCMChanges(boolean applyConditionOnlyIfNoSCMChanges) -
setParsingRulesPath
-
getParsingRulesPath
-
setCondition
-
getCondition
-
setMaxRetries
public void setMaxRetries(int maxRetries) -
getMaxRetries
public int getMaxRetries() -
setEnableRetryStrategy
public void setEnableRetryStrategy(boolean enableRetryStrategy) -
getEnableRetryStrategy
public boolean getEnableRetryStrategy() -
setEnableCondition
public void setEnableCondition(boolean enableCondition) -
getEnableCondition
public boolean getEnableCondition() -
setAbortAllJob
public void setAbortAllJob(boolean abortAllJob) -
getAbortAllJob
public boolean getAbortAllJob() -
isDisableJob
public boolean isDisableJob() -
setDisableJob
public void setDisableJob(boolean disableJob) -
getKillPhaseOnJobResultCondition
-
setKillPhaseOnJobResultCondition
public void setKillPhaseOnJobResultCondition(PhaseJobsConfig.KillPhaseOnJobResultCondition killPhaseOnJobResultCondition) -
isExposedSCM
public boolean isExposedSCM() -
setExposedSCM
public void setExposedSCM(boolean exposedSCM) -
isCurrParams
public boolean isCurrParams() -
setCurrParams
public void setCurrParams(boolean currParams) -
isAggregatedTestResults
public boolean isAggregatedTestResults() -
setAggregatedTestResults
public void setAggregatedTestResults(boolean aggregatedTestResults) -
getJobProperties
-
setJobProperties
-
getJobName
-
setJobName
-
getJobAlias
-
setJobAlias
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<PhaseJobsConfig>
-
getDisplayName
-
getConfigs
-
getJobParameters
-
getActions
public List<Action> getActions(AbstractBuild build, TaskListener listener, Job project, boolean isCurrentInclude) throws IOException, InterruptedException Create a list of actions to pass to the triggered build of project. This will create a single ParametersAction which will use the defaults from the project being triggered and override these, With the current parameters defined in this build. if configured. With any matching items defined in the different configs, e.g. predefined parameters.- Parameters:
build
- build that is triggering projectlistener
- Project's listenerproject
- Project that is being triggeredisCurrentInclude
- Include parameters from the current build.- Returns:
- retuen List
- Throws:
IOException
- throws IOExceptionInterruptedException
- throws InterruptedException
-
hasProperties
public boolean hasProperties() -
readResolve
-