|
Hi!
I have various personal repos on github and I want Jenkins to build when a change is made on any of these repos, and have a Jenkins Job for each repo. Each repo has ~10 branches, or more. The branch specifier is "**", all the rest is the default (empty for the most part)
I use the github plugin, which uses the git plugin IIUC. When I commit changes to some branch, some other and totally different branch is built. Sometimes, after building many times different branches that the ones I've made commits on, it starts building the correct branch. But I don't know which pattern it follows. And, as it started building the correct branch, sometimes it stops and builds some other branch when I commit changes (I mean, not the branch I commited changes to).
I've testes disabling the github hook and the "Build when a change is pushed to GitHub" option, enabled polling (@yearly) and try hitting the URL with curl: curl [1]
(I replaced the server and gut URL, I didn't specify branches though)
Then, when I commit to some branch and run curl, it started building but some other branch (ancient). So I think it should be a git pĺugin bug, but I might be wrong =)
I've also tried using git plugin 1.1.23 and 1.1.22 (with the github plugin and github hooks) and the same problem happens.
Also, if I specify "*/master" when I commit a change to some other branch (not master) and hit the URL with curl, the branch master is built. Although no change was done on that branch. But well, at least the branch master is built and not some other _one_ =)
If you can't reproduce the bug or I can help testing something, please let me know
Thanks a lot,
Rodrigo
[1]: As explained here https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin
|