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

Pipeline "currentBuild" should expose project name

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • pipeline
    • None

      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.

          [JENKINS-37366] Pipeline "currentBuild" should expose project name

          Andrew Bayer added a comment -

          Andrew Bayer added a comment - PR up at https://github.com/jenkinsci/workflow-support-plugin/pull/8

          Can you use `env.JOB_NAME` instead?

          http://stackoverflow.com/a/41345704

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

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

              Created:
              Updated:
              Resolved: