Class PhaseJobsConfig

java.lang.Object
com.tikal.jenkins.plugins.multijob.PhaseJobsConfig
All Implemented Interfaces:
Describable<PhaseJobsConfig>

public class PhaseJobsConfig extends Object implements Describable<PhaseJobsConfig>
  • 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

      public void setParsingRulesPath(String parsingRulesPath)
    • getParsingRulesPath

      public String getParsingRulesPath()
    • setCondition

      public void setCondition(String condition)
    • getCondition

      public String 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

      public PhaseJobsConfig.KillPhaseOnJobResultCondition 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

      public String getJobProperties()
    • setJobProperties

      public void setJobProperties(String jobProperties)
    • getJobName

      public String getJobName()
    • setJobName

      public void setJobName(String jobName)
    • getJobAlias

      public String getJobAlias()
    • setJobAlias

      public void setJobAlias(String jobAlias)
    • getDescriptor

      public Descriptor<PhaseJobsConfig> getDescriptor()
      Specified by:
      getDescriptor in interface Describable<PhaseJobsConfig>
    • getDisplayName

      public String getDisplayName()
    • getConfigs

      public List<hudson.plugins.parameterizedtrigger.AbstractBuildParameters> getConfigs()
    • getJobParameters

      public List<ParameterValue> getJobParameters(AbstractBuild<?,?> build, TaskListener listener)
    • 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 project
      listener - Project's listener
      project - Project that is being triggered
      isCurrentInclude - Include parameters from the current build.
      Returns:
      retuen List
      Throws:
      IOException - throws IOException
      InterruptedException - throws InterruptedException
    • hasProperties

      public boolean hasProperties()
    • readResolve

      public Object readResolve()