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

GIT_BRANCH_SHORT for branch name without release/, feature/, etc. Just the bit after the '/'

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • git-plugin
    • None

      For cases where a filename expansion is needed for the git branch name, thre cannot be a '/' in a filename, so that part of the branch needs to be dropped.
      ie:
      GIT_BRANCH=release/blue-fish
      then:
      GIT_BRANCH_SHORT=blue-fish

      Seems like a simple thing to do in the plugin, but not possible to do in a job.

            Unassigned Unassigned
            bedge Bruce Edge
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: