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:
- 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:
- Run a build using master
- Configure the branch to be a tag: "test2-1.0"
- Run the job
Builds the tag
Builds the last built revision