com.tikal.jenkins.plugins.multijob
Class PhaseJobsConfig

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

public class PhaseJobsConfig
extends Object
implements hudson.model.Describable<PhaseJobsConfig>


Nested Class Summary
static class PhaseJobsConfig.DescriptorImpl
           
 
Constructor Summary
PhaseJobsConfig(String jobName, String jobProperties, boolean currParams, List<hudson.plugins.parameterizedtrigger.AbstractBuildParameters> configs)
           
 
Method Summary
 List<hudson.model.Action> getActions(hudson.model.AbstractBuild build, hudson.model.TaskListener listener, hudson.model.AbstractProject project, boolean isCurrentInclude)
          Create a list of actions to pass to the triggered build of project.
 List<hudson.plugins.parameterizedtrigger.AbstractBuildParameters> getConfigs()
           
 hudson.model.Descriptor<PhaseJobsConfig> getDescriptor()
           
 String getDisplayName()
           
 String getJobName()
           
 List<hudson.model.ParameterValue> getJobParameters(hudson.model.AbstractBuild<?,?> build, hudson.model.TaskListener listener)
           
 String getJobProperties()
           
 boolean hasProperties()
           
 boolean isCurrParams()
           
 boolean isExposedSCM()
           
 Object readResolve()
           
 void setCurrParams(boolean currParams)
           
 void setExposedSCM(boolean exposedSCM)
           
 void setJobName(String jobName)
           
 void setJobProperties(String jobProperties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhaseJobsConfig

@DataBoundConstructor
public PhaseJobsConfig(String jobName,
                                            String jobProperties,
                                            boolean currParams,
                                            List<hudson.plugins.parameterizedtrigger.AbstractBuildParameters> configs)
Method Detail

isExposedSCM

public boolean isExposedSCM()

setExposedSCM

public void setExposedSCM(boolean exposedSCM)

isCurrParams

public boolean isCurrParams()

setCurrParams

public void setCurrParams(boolean currParams)

getJobProperties

public String getJobProperties()

setJobProperties

public void setJobProperties(String jobProperties)

getJobName

public String getJobName()

setJobName

public void setJobName(String jobName)

getDescriptor

public hudson.model.Descriptor<PhaseJobsConfig> getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<PhaseJobsConfig>

getDisplayName

public String getDisplayName()

getConfigs

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

getJobParameters

public List<hudson.model.ParameterValue> getJobParameters(hudson.model.AbstractBuild<?,?> build,
                                                          hudson.model.TaskListener listener)

getActions

public List<hudson.model.Action> getActions(hudson.model.AbstractBuild build,
                                            hudson.model.TaskListener listener,
                                            hudson.model.AbstractProject 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 - Project that is being triggered
isCurrentInclude - Include parameters from the current build.
Returns:
Throws:
IOException
InterruptedException

hasProperties

public boolean hasProperties()

readResolve

public Object readResolve()


Copyright © 2004-2014 Hudson. All Rights Reserved.