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

Expose full name of parent job as an environment variable

XMLWordPrintable

      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().

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

              Created:
              Updated: