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

          kfritsche Karl Fritsche created issue -
          kfritsche Karl Fritsche made changes -
          Field Original Value New Value
          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.
          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.
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 167445 ] JNJira + In-Review [ 182734 ]

            People

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

              Dates

              • Created:
                Updated: