public class JobcopyBuilder extends hudson.tasks.Builder implements Serializable
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
JobcopyBuilder.DescriptorImpl
The internal class to work with views.
|
| コンストラクタと説明 |
|---|
JobcopyBuilder(String fromJobName,
String toJobName,
boolean overwrite,
List<JobcopyOperation> jobcopyOperationList,
List<AdditionalFileset> additionalFilesetList)
Constructor to instantiate from parameters in the job configuration page.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
List<AdditionalFileset> |
getAdditionalFilesetList()
Retuns a list of sets of files to copy additional to JOBNAME/config.xml.
|
String |
getFromJobName()
Returns the name of job to be copied from.
|
List<JobcopyOperation> |
getJobcopyOperationList()
Returns the list of operations.
|
String |
getToJobName()
Returns the name of job to be copied to.
|
boolean |
isOverwrite()
Returns whether to overwrite an existing job.
|
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
Performs the build step.
|
getProjectAction, getProjectAction, getProjectActions, perform, prebuild@DataBoundConstructor public JobcopyBuilder(String fromJobName, String toJobName, boolean overwrite, List<JobcopyOperation> jobcopyOperationList, List<AdditionalFileset> additionalFilesetList)
fromJobName - a name of a job to be copied from. may contains variable expressions.toJobName - a name of a job to be copied to. may contains variable expressions.overwrite - whether to overwrite if the job to be copied to is already existing.jobcopyOperationList - the list of operations to be performed when copying.additionalFilesetList - the list of sets of files to copy additional to JOBNAME/config.xml.public String getFromJobName()
public String getToJobName()
public boolean isOverwrite()
| isOverwrite | behavior |
|---|---|
| true | Overwrite the configuration of the existing job. |
| false | Build fails. |
public List<JobcopyOperation> getJobcopyOperationList()
public List<AdditionalFileset> getAdditionalFilesetList()
public boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws IOException,
InterruptedException
perform インタフェース内 hudson.tasks.BuildStepperform クラス内 hudson.tasks.BuildStepCompatibilityLayerbuild - launcher - listener - IOExceptionInterruptedExceptionBuildStepCompatibilityLayer.perform(hudson.model.AbstractBuild, hudson.Launcher, hudson.model.BuildListener)Copyright © 2004-2013. All Rights Reserved.