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

Expose full name of parent job as an environment variable

    Details

    • Type: Improvement
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: promoted-builds-plugin
    • Labels:
      None
    • Similar Issues:

      Description

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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: