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

Provide a $JOB_DIR_NAME variable inside a folder

    Details

    • Type: Improvement
    • Status: In Review (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
    • Similar Issues:

      Description

      Similar to what was done in the fix for https://issues.jenkins-ci.org/browse/JENKINS-25164 (https://github.com/jenkinsci/jenkins/commit/4bab3630efcc2fa331db2989e321d9af1b8cdc1c) with the addition of the JOB_BASE_NAME env var, I'd like to see the addition of a JOB_DIR_NAME env var containing the dirname of the full job name (i.e. 'bar' for a job name 'bar/foo').

      The reasoning is that the job structure (i.e. the name of the folder containing a job) usually represents meaningful organisational information that a job might want to act upon.

        Attachments

          Activity

          rabadin Raphael Badin created issue -
          Show
          rabadin Raphael Badin added a comment - https://github.com/jenkinsci/jenkins/pull/3539
          rabadin Raphael Badin made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          rabadin Raphael Badin made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]

            People

            • Assignee:
              rabadin Raphael Badin
              Reporter:
              rabadin Raphael Badin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: