-
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().
[JENKINS-18958] Expose full name of parent job as an environment variable
Description |
Original:
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 PROMOTION_JOB_FULL_NAME to target.getParent().getFullName(). |
New:
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(). |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Workflow | Original: JNJira [ 150405 ] | New: JNJira + In-Review [ 193508 ] |
Resolution | Original: Fixed [ 1 ] | |
Status | Original: Resolved [ 5 ] | New: Reopened [ 4 ] |