jp.ikedam.jenkins.plugins.jobcopy_builder
クラス JobcopyBuilder
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
jp.ikedam.jenkins.plugins.jobcopy_builder.JobcopyBuilder
- すべての実装されたインタフェース:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Builder>, hudson.tasks.BuildStep, Serializable
public class JobcopyBuilder
- extends hudson.tasks.Builder
- implements Serializable
A build step to copy a job.
You can specify additional operations that is performed when copying,
and the operations can be extended with plugins using Extension Points.
- 関連項目:
- 直列化された形式
| インタフェース hudson.tasks.BuildStep から継承された入れ子のクラス/インタフェース |
hudson.tasks.BuildStep.PublisherList |
| インタフェース hudson.ExtensionPoint から継承された入れ子のクラス/インタフェース |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| インタフェース hudson.tasks.BuildStep から継承されたフィールド |
BUILDERS, PUBLISHERS |
| クラス hudson.tasks.Builder から継承されたメソッド |
all, getDescriptor, getRequiredMonitorService, prebuild |
| クラス hudson.tasks.BuildStepCompatibilityLayer から継承されたメソッド |
getProjectAction, getProjectAction, getProjectActions, perform, prebuild |
| クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| インタフェース hudson.tasks.BuildStep から継承されたメソッド |
getProjectAction, getProjectActions, prebuild |
JobcopyBuilder
@DataBoundConstructor
public JobcopyBuilder(String fromJobName,
String toJobName,
boolean overwrite,
List<JobcopyOperation> jobcopyOperationList)
- Constructor to instantiate from parameters in the job configuration page.
When instantiating from the saved configuration,
the object is directly serialized with XStream,
and no constructor is used.
- パラメータ:
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.
getFromJobName
public String getFromJobName()
- Returns the name of job to be copied from.
Variable expressions will be expanded.
- 戻り値:
- the name of job to be copied from
getToJobName
public String getToJobName()
- Returns the name of job to be copied to.
Variable expressions will be expanded.
- 戻り値:
- the name of job to be copied to
isOverwrite
public boolean isOverwrite()
- Returns whether to overwrite an existing job.
If the copied-to job is already exists,
jobcopy build step works as following depending on this value.
| isOverwrite |
behavior |
| true |
Delete the existing job, and create a new job. |
| false |
Build fails. |
- 戻り値:
- whether to overwrite an existing job.
getJobcopyOperationList
public List<JobcopyOperation> getJobcopyOperationList()
- Returns the list of operations.
- 戻り値:
- the list of operations
perform
public boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws IOException,
InterruptedException
- Performs the build step.
- 定義:
- インタフェース
hudson.tasks.BuildStep 内の perform - オーバーライド:
- クラス
hudson.tasks.BuildStepCompatibilityLayer 内の perform
- パラメータ:
build - launcher - listener -
- 戻り値:
- whether the process succeeded.
- 例外:
IOException
InterruptedException- 関連項目:
BuildStepCompatibilityLayer.perform(hudson.model.AbstractBuild, hudson.Launcher, hudson.model.BuildListener)
Copyright © 2004-2013. All Rights Reserved.