jp.ikedam.jenkins.plugins.jobcopy_builder
クラス JobcopyOperation

java.lang.Object
  上位を拡張 hudson.model.AbstractDescribableImpl<JobcopyOperation>
      上位を拡張 jp.ikedam.jenkins.plugins.jobcopy_builder.JobcopyOperation
すべての実装されたインタフェース:
hudson.ExtensionPoint, hudson.model.Describable<JobcopyOperation>
直系の既知のサブクラス:
AbstractXmlJobcopyOperation

public abstract class JobcopyOperation
extends hudson.model.AbstractDescribableImpl<JobcopyOperation>
implements hudson.ExtensionPoint

Additional operations performed when the jobcopy build step copies a job. A new additional operation can be defined in following steps:

  1. Define a new class derived from JobcopyOperation. AbstractXmlJobcopyOperation is also available.
  2. Override perform(String, String, EnvVars, PrintStream) or AbstractXmlJobcopyOperation.perform(org.w3c.dom.Document, EnvVars, PrintStream)
  3. Define the internal public static class named DescriptorImpl, derived from Descriptor<JobcopyOperation>
  4. annotate the DescriptorImpl with Extension


入れ子のクラスの概要
 
インタフェース hudson.ExtensionPoint から継承された入れ子のクラス/インタフェース
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
コンストラクタの概要
JobcopyOperation()
           
 
メソッドの概要
static hudson.DescriptorExtensionList<JobcopyOperation,hudson.model.Descriptor<JobcopyOperation>> all()
          Return all the available JobcopyOperation whose DescriptorImpl annotated with Extension.
abstract  String perform(String xmlString, String encoding, hudson.EnvVars env, PrintStream logger)
          Return modified XML string of the job configuration.
 
クラス hudson.model.AbstractDescribableImpl から継承されたメソッド
getDescriptor
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

JobcopyOperation

public JobcopyOperation()
メソッドの詳細

all

public static hudson.DescriptorExtensionList<JobcopyOperation,hudson.model.Descriptor<JobcopyOperation>> all()
Return all the available JobcopyOperation whose DescriptorImpl annotated with Extension.

戻り値:

perform

public abstract String perform(String xmlString,
                               String encoding,
                               hudson.EnvVars env,
                               PrintStream logger)
Return modified XML string of the job configuration.

パラメータ:
xmlString - the XML string of the job to be copied (job/NAME/config.xml)
encoding - the encoding of the XML.
env - Variables defined in the build.
logger - The output stream to log.
戻り値:
modified XML string. Return null if an error occurs.


Copyright © 2004-2013. All Rights Reserved.