jp.ikedam.jenkins.plugins.groovy_label_assignment
クラス GroovyLabelAssignmentProperty

java.lang.Object
  上位を拡張 hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>
      上位を拡張 jp.ikedam.jenkins.plugins.groovy_label_assignment.GroovyLabelAssignmentProperty
すべての実装されたインタフェース:
hudson.ExtensionPoint, hudson.model.Describable<hudson.model.JobProperty<?>>, hudson.model.ReconfigurableDescribable<hudson.model.JobProperty<?>>, hudson.tasks.BuildStep

public class GroovyLabelAssignmentProperty
extends hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>

JobProperty that holds configuration for GroovyLabelAssignment.


入れ子のクラスの概要
static class GroovyLabelAssignmentProperty.DescriptorImpl
          Class used for working with view.
 
インタフェース hudson.tasks.BuildStep から継承された入れ子のクラス/インタフェース
hudson.tasks.BuildStep.PublisherList
 
インタフェース hudson.ExtensionPoint から継承された入れ子のクラス/インタフェース
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
フィールドの概要
static String PROPERTYNAME
          Property name used for job configuration page.
 
クラス hudson.model.JobProperty から継承されたフィールド
owner
 
インタフェース hudson.tasks.BuildStep から継承されたフィールド
BUILDERS, PUBLISHERS
 
コンストラクタの概要
GroovyLabelAssignmentProperty(String groovyScript)
          Constructor from the form input.
 
メソッドの概要
 boolean assignLabel(hudson.model.AbstractProject<?,?> project, List<hudson.model.Action> actions)
          Decide label of nodes where the job will run.
protected  groovy.lang.Binding createBinding(hudson.model.AbstractProject<?,?> project, List<hudson.model.Action> actions)
          Create variables used in a groovy script.
 String getGroovyScript()
           
 void setGroovyScript(String groovyScript)
          Set the Groovy script.
 
クラス hudson.model.JobProperty から継承されたメソッド
getDescriptor, getJobAction, getJobActions, getJobOverrides, getProjectAction, getProjectActions, getRequiredMonitorService, getSubTasks, perform, prebuild, reconfigure, setOwner
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

PROPERTYNAME

public static final String PROPERTYNAME
Property name used for job configuration page.

関連項目:
定数フィールド値
コンストラクタの詳細

GroovyLabelAssignmentProperty

@DataBoundConstructor
public GroovyLabelAssignmentProperty(String groovyScript)
Constructor from the form input.

パラメータ:
groovyScript -
メソッドの詳細

getGroovyScript

public String getGroovyScript()
戻り値:
the Groovy Script

setGroovyScript

public void setGroovyScript(String groovyScript)
Set the Groovy script. For testing purpose.

パラメータ:
groovyScript - the Groovy script to set

assignLabel

public boolean assignLabel(hudson.model.AbstractProject<?,?> project,
                           List<hudson.model.Action> actions)
Decide label of nodes where the job will run.

パラメータ:
project - The job. This may not be the owner job if it is MatrixConfiguration.
actions - actions of job. and add LabelAssignmentAction.
戻り値:
returns properly evaluate script and add label.

createBinding

protected groovy.lang.Binding createBinding(hudson.model.AbstractProject<?,?> project,
                                            List<hudson.model.Action> actions)
Create variables used in a groovy script.

パラメータ:
project -
actions -
戻り値:


Copyright © 2004-2015. All Rights Reserved.