Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-18958

Expose full name of parent job as an environment variable

      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

          Jonathan Zimmerman created issue -
          Jonathan Zimmerman made changes -
          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().
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 150405 ] New: JNJira + In-Review [ 193508 ]
          Joshua Tharp made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

            Unassigned Unassigned
            tyrius Jonathan Zimmerman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: