|
I'm not the original reporter however I just noticed the same thing in the combination of TFS2015 and Jenkins. TFS2015 provides a service hook to Jenkins which sends a GET request to the following URL:
http://myjenkinsserver/git/notifyCommit?url=http:%2F%2Ftfs:8080%2Ftfs%2FProjectCollection%2FProject%2F_git%2FRepository&sha1=32b21f5e74c51d2054ffed71ddfc46f79c08a9d0
In our case each repository may have multiple builds looking at the repository but each build is looking at a different branch, e.g. we have a build looking at the master branch (branches to build = /master), one at all the feature branches (branches to build = */feature/*), etc. etc.
The problem is that the given SHA is only on a single branch (in this case feature/testintegrationwithjenkins) so I was expecting it to ONLY trigger the build that is looking at the feature branches, not the other builds. However it's triggering all builds looking at the given repository. According to the documentation that is the correct thing to do however I don't think it is. The job definition states that it will only build code that is on a given branch but this by passes that, thereby potentially building with an incorrect job configuration.
|