public class LockableResourcesStruct extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
String |
label |
List<LockableResource> |
required |
String |
requiredNumber |
String |
requiredVar |
| Constructor and Description |
|---|
LockableResourcesStruct(List<String> resources)
Light-weight constructor for declaring a resource only.
|
LockableResourcesStruct(List<String> resources,
String label,
int quantity) |
LockableResourcesStruct(List<String> resources,
String label,
int quantity,
String variable) |
LockableResourcesStruct(RequiredResourcesProperty property,
EnvVars env) |
| Modifier and Type | Method and Description |
|---|---|
org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript |
getResourceMatchScript()
Gets a system Groovy script to be executed in order to determine if the
LockableResource matches the condition. |
String |
toString() |
public List<LockableResource> required
public String label
public String requiredVar
public String requiredNumber
public LockableResourcesStruct(RequiredResourcesProperty property, EnvVars env)
public LockableResourcesStruct(@Nullable
List<String> resources)
resources - Resources to be requiredpublic LockableResourcesStruct(@Nullable
List<String> resources,
@Nullable
String label,
int quantity,
String variable)
@CheckForNull public org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript getResourceMatchScript()
LockableResource matches the condition.LockableResource.scriptMatches(org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript,
java.util.Map)Copyright © 2013–2019. All rights reserved.