Class RequiredResourcesProperty
- All Implemented Interfaces:
ExtensionPoint,Describable<JobProperty<?>>,ReconfigurableDescribable<JobProperty<?>>,BuildStep
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.JobProperty
ownerFields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
ConstructorsConstructorDescriptionRequiredResourcesProperty(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.SecureGroovyScriptGets a system Groovy script to be executed in order to determine if theLockableResourcematches the condition.String[]Methods inherited from class hudson.model.JobProperty
getDescriptor, getJobAction, getJobActions, getJobOverrides, getProjectAction, getProjectActions, getRequiredMonitorService, getSubTasks, perform, prebuild, reconfigure, 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 theLockableResourcematches the condition.- Returns:
- System Groovy Script if defined
- Since:
- 2.0
- See Also:
-