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.
| インタフェース hudson.tasks.BuildStep から継承された入れ子のクラス/インタフェース |
hudson.tasks.BuildStep.PublisherList |
| インタフェース hudson.ExtensionPoint から継承された入れ子のクラス/インタフェース |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| クラス hudson.model.JobProperty から継承されたフィールド |
owner |
| インタフェース hudson.tasks.BuildStep から継承されたフィールド |
BUILDERS, PUBLISHERS |
|
メソッドの概要 |
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-2013. All Rights Reserved.