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

Provide a short $JOB_NAME inside a folder

    Details

    • Similar Issues:

      Description

      We are using $JOB_NAME a lot to automatically create names für ClearCase views in our jobs. This looks like

      ${USER_NAME}${COMPUTERNAME}${JOB_NAME} for the view tag and
      ${JOB_NAME} for the view name.

      Additionaly we ha a small managed script to automatically create a build tag:
      echo %BUILD_TAG% > %CLEARCASE_VIEWPATH%%JOB_NAME%-build.tag

      When a Job is now moved into a folder the JOB-NAME is "foldername/jobname" which is longer and contains a slash causing real pain on windows.

      I don't know if someone is relying on JOB_NAME containing the folder name and the slash, but would it be possible to separate this into two variables like FOLDER_NAME and (SHORT_)JOB_NAME?

        Attachments

          Activity

          bruce Dirk Kuypers created issue -
          bruce Dirk Kuypers made changes -
          Field Original Value New Value
          Labels folders
          Component/s core [ 15593 ]
          Component/s cloudbees-folder [ 18137 ]
          jglick Jesse Glick made changes -
          Component/s cloudbees-folder-plugin [ 18137 ]
          Component/s core [ 15593 ]
          Assignee Jesse Glick [ jglick ]
          Priority Minor [ 4 ] Major [ 3 ]
          Labels folders
          fbelzunc Félix Belzunce Arcos made changes -
          Assignee Félix Belzunce Arcos [ fbelzunc ]
          fbelzunc Félix Belzunce Arcos made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          fbelzunc Félix Belzunce Arcos made changes -
          Component/s core [ 15593 ]
          Component/s cloudbees-folder-plugin [ 18137 ]
          fbelzunc Félix Belzunce Arcos made changes -
          Labels folders
          scm_issue_link SCM/JIRA link daemon made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          oleg_nenashev Oleg Nenashev made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 159073 ] JNJira + In-Review [ 208134 ]

            People

            • Assignee:
              fbelzunc Félix Belzunce Arcos
              Reporter:
              bruce Dirk Kuypers
            • Votes:
              2 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: