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.

関連項目:
直列化された形式

入れ子のクラスの概要
static class JobcopyBuilder.DescriptorImpl
          The internal class to work with views.
 
インタフェース hudson.tasks.BuildStep から継承された入れ子のクラス/インタフェース
hudson.tasks.BuildStep.PublisherList
 
インタフェース hudson.ExtensionPoint から継承された入れ子のクラス/インタフェース
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
フィールドの概要
 
インタフェース hudson.tasks.BuildStep から継承されたフィールド
BUILDERS, PUBLISHERS
 
コンストラクタの概要
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.
 
クラス 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,
                                           List<AdditionalFileset> additionalFilesetList)
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.
additionalFilesetList - the list of sets of files to copy additional to JOBNAME/config.xml.
メソッドの詳細

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 Overwrite the configuration of the existing job.
false Build fails.

戻り値:
whether to overwrite an existing job.

getJobcopyOperationList

public List<JobcopyOperation> getJobcopyOperationList()
Returns the list of operations.

戻り値:
the list of operations

getAdditionalFilesetList

public List<AdditionalFileset> getAdditionalFilesetList()
Retuns a list of sets of files to copy additional to JOBNAME/config.xml.

戻り値:
the additionalFilesetList

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.