-
Improvement
-
Resolution: Unresolved
-
Major
-
None
In an environment using folders the PROMOTED_JOB_NAME cannot be relied upon to differentiate two different jobs. Ideally the full name of the build being promoted would be exposed as PROMOTED_JOB_FULL_NAME.
The quick and dirty is rather simple: when building the environment variables set PROMOTED_JOB_FULL_NAME to target.getParent().getFullName().
I've added logic and a UT for this.
https://github.com/jenkinsci/promoted-builds-plugin/pull/29