If you have created a pool of resources, i.e. a label, you can take it into use here. The build will select the resource(s) from the pool that includes all resources sharing the given label. Either Label or Resources field must be empty.
If label starts with groovy:
then it is treated as a groovy expression
to be evaluated each time a resource is checked to be appropriate for a build. The
expression must result into a boolean value. The following variables are available:
java.util.List<String>
of labels as per resource configurationFor matrix jobs, axis names and axis values are referencable as well. Examples:
groovy:resourceLabels.contains("hardcoded")
groovy:resourceLabels.contains(axisName)
groovy:resourceName == axisName