• Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • core

      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?

          [JENKINS-25164] Provide a short $JOB_NAME inside a folder

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

            fbelzunc Félix Belzunce Arcos
            bruce Dirk Kuypers
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: