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

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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.

            Assignee:
            Unassigned
            Reporter:
            Bruce Edge
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: