Class RequiredResourcesProperty
- All Implemented Interfaces:
ExtensionPoint
,Describable<JobProperty<?>>
,ReconfigurableDescribable<JobProperty<?>>
,BuildStep
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.model.JobProperty
owner
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
ConstructorDescriptionRequiredResourcesProperty
(String resourceNames, String resourceNamesVar, String resourceNumber, String labelName) Deprecated.groovy script was added (since 2.0)RequiredResourcesProperty
(String resourceNames, String resourceNamesVar, String resourceNumber, String labelName, org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript resourceMatchScript) -
Method Summary
Modifier and TypeMethodDescriptionorg.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript
Gets a system Groovy script to be executed in order to determine if theLockableResource
matches the condition.String[]
Methods inherited from class hudson.model.JobProperty
getDescriptor, getJobAction, getJobActions, getJobOverrides, getProjectAction, getProjectActions, getRequiredMonitorService, getSubTasks, perform, prebuild, reconfigure, setOwner
-
Constructor Details
-
RequiredResourcesProperty
@DataBoundConstructor public RequiredResourcesProperty(String resourceNames, String resourceNamesVar, String resourceNumber, String labelName, @CheckForNull org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript resourceMatchScript) throws Descriptor.FormException - Throws:
Descriptor.FormException
-
RequiredResourcesProperty
@Deprecated public RequiredResourcesProperty(String resourceNames, String resourceNamesVar, String resourceNumber, String labelName) throws Descriptor.FormException Deprecated.groovy script was added (since 2.0)- Throws:
Descriptor.FormException
-
-
Method Details
-
getResources
-
getResourceNames
-
getResourceNamesVar
-
getResourceNumber
-
getLabelName
-
getResourceMatchScript
@CheckForNull public org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript getResourceMatchScript()Gets a system Groovy script to be executed in order to determine if theLockableResource
matches the condition.- Returns:
- System Groovy Script if defined
- Since:
- 2.0
- See Also:
-