-
New Feature
-
Resolution: Fixed
-
Major
-
None
quoted from https://github.com/jenkinsci/groovy-label-assignment-plugin/pull/1:
in your groovy script, you can reference the current Jenkins job as “currentJob” and do stuff like that:
[‘windows’, ‘linux’, ‘mac’].find { currentJob.name.toLowerCase().contains(it) }The piece of code above would automatically assign the label according to the job name.