Class PhaseJobsConfig
java.lang.Object
com.tikal.jenkins.plugins.multijob.PhaseJobsConfig
- All Implemented Interfaces:
Describable<PhaseJobsConfig>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionPhaseJobsConfig(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 TypeMethodDescriptionbooleangetActions(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>booleanbooleangetJobParameters(AbstractBuild<?, ?> build, TaskListener listener) intbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetAbortAllJob(boolean abortAllJob) voidsetAggregatedTestResults(boolean aggregatedTestResults) voidsetApplyConditionOnlyIfNoSCMChanges(boolean applyConditionOnlyIfNoSCMChanges) voidsetBuildOnlyIfSCMChanges(boolean triggerOnlyIfSCMChanges) voidsetCondition(String condition) voidsetCurrParams(boolean currParams) voidsetDisableJob(boolean disableJob) voidsetEnableCondition(boolean enableCondition) voidsetEnableRetryStrategy(boolean enableRetryStrategy) voidsetExposedSCM(boolean exposedSCM) voidsetJobAlias(String jobAlias) voidsetJobName(String jobName) voidsetJobProperties(String jobProperties) voidsetKillPhaseOnJobResultCondition(PhaseJobsConfig.KillPhaseOnJobResultCondition killPhaseOnJobResultCondition) voidsetMaxRetries(int maxRetries) voidsetParsingRulesPath(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:
getDescriptorin 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
-