public class GroovyLabelAssignmentProperty
extends hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>
Modifier and Type | Class and Description |
---|---|
static class |
GroovyLabelAssignmentProperty.DescriptorImpl
Class used for working with view.
|
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTYNAME
Property name used for job configuration page.
|
Constructor and Description |
---|
GroovyLabelAssignmentProperty(org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript secureGroovyScript)
Constructor from the form input.
|
GroovyLabelAssignmentProperty(String groovyScript) |
Modifier and Type | Method and Description |
---|---|
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()
Deprecated.
use
getSecureGroovyScript() instead |
org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript |
getSecureGroovyScript() |
public static final String PROPERTYNAME
@DataBoundConstructor public GroovyLabelAssignmentProperty(org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript secureGroovyScript)
secureGroovyScript
- public GroovyLabelAssignmentProperty(String groovyScript)
@Deprecated public String getGroovyScript()
getSecureGroovyScript()
insteadpublic org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript getSecureGroovyScript()
public boolean assignLabel(hudson.model.AbstractProject<?,?> project, List<hudson.model.Action> actions)
project
- The job. This may not be the owner job if it is MatrixConfiguration.actions
- actions of job. and add LabelAssignmentAction.protected groovy.lang.Binding createBinding(hudson.model.AbstractProject<?,?> project, List<hudson.model.Action> actions)
project
- actions
- Copyright © 2004-2016. All Rights Reserved.