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

Possibility to get branch name instead of commit id

    Details

    • Similar Issues:

      Description

      Today I tried this plugin and I would love to see one addiiton.
      We have mutliple repositories to checkout in one job and therefor I can't use ${sourceBranch} as the commit id seems to be in there.
      Would it be possible to add ${sourceBranchName}/${targetBranchName} where the name of the branch is used instead of the commit id?

      Then I could use this for all repositories to checkout. We use alternative checkout method here. So if the branch X is not existing it falls back to master.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              kfritsche Karl Fritsche
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: