Branch: refs/heads/master
Home: https://github.com/jenkinsci/git-plugin
Commit: 31fedce9c41c9006c886835e03c9fe825d49aba6
https://github.com/jenkinsci/git-plugin/commit/31fedce9c41c9006c886835e03c9fe825d49aba6
Author: Claudio Bley <[email protected]>
Date: 2017-03-08 (Wed, 08 Mar 2017)
Changed paths:
M src/main/java/hudson/plugins/git/util/GitUtils.java
M src/test/java/hudson/plugins/git/GitSCMTest.java
Log Message:
-----------
[FIXED JENKINS-09713] Consider tags when checking which branches to build
When using multiple branch specifiers, the git plugin uses an advanced
selection mechanism as defined in `getAdvancedCandidateRevisons` which
does not consider tags from the repository, only normal branches.
E.g. when using the following Branch specifiers:
- refs/remotes/origin/${B}
- refs/tags/${B}
where B is a build parameter having a default value of "master" never
causes any tag to be build, regardless of what the user chooses.
Include the tags to complete the list of valid branches to find the best
matching ref for the current build.
Add testMultipleBranchesWithTags to GitSCMTest
This test checks that for multiple branch specifications including some
tag references, the build succeeds and selects the correct revision.
Pull request #340
--
You received this message because you are subscribed to the Google Groups
"Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.