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

Pipeline "currentBuild" should expose project name

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: pipeline
    • Labels:
      None
    • Similar Issues:

      Description

      The currentBuild global variable (a.k.a. RunWrapper) doesn't actually give you Whitelisted access to the job/project name, which is...annoying. That should be fixed.

        Attachments

          Issue Links

            Activity

            Show
            abayer Andrew Bayer added a comment - PR up at https://github.com/jenkinsci/workflow-support-plugin/pull/8
            Hide
            shauvik Shauvik Roy Choudhary added a comment -

            Can you use `env.JOB_NAME` instead?

            http://stackoverflow.com/a/41345704

            Show
            shauvik Shauvik Roy Choudhary added a comment - Can you use `env.JOB_NAME` instead? http://stackoverflow.com/a/41345704

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                abayer Andrew Bayer
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: