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

Building a git tag doesn't work with multiple remotes

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      In the git plugin, when multiple repository URLs are configured (note: two remotes, not MultiSCM), building a git tag does not find the correct commit.

      Steps to reproduce:

      1. Create a job with two git repository URLs (note: two remotes, not MultiSCM). Ensure you name give the second one a different remote name. For example:
        origin -> git://github.com/blt04/jenkins-test1.git
        upstream -> git://github.com/blt04/jenkins-test2.git
        
      2. Run a build using master
      3. Configure the branch to be a tag: "test2-1.0"
      4. Run the job

      Expected results:
      Builds the tag

      Actual results:
      Builds the last built revision

        Attachments

          Issue Links

            Activity

            Hide
            blt04 Brandon Turner added a comment -
            Show
            blt04 Brandon Turner added a comment - Pull request: https://github.com/jenkinsci/git-plugin/pull/287

              People

              • Assignee:
                Unassigned
                Reporter:
                blt04 Brandon Turner
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: