Can't figure out how Jenkins GIT Plugin works

25 views
Skip to first unread message

ozca...@gmail.com

unread,
Jul 21, 2015, 3:15:38 AM7/21/15
to jenkins...@googlegroups.com
Hi everyone,

I have a project on Github which has 3 branches: master, test2, test3 -> https://github.com/ozcanovunc/jenkins-test/blob/master/test.py. And I'm running test.py file in batch command by "python test.py" command.
  • test2 branch : code with error in test.py
  • test3 branch : code with error in test.py
  • master branch : ok code in test.py
So when I modify test.py in each branch and build the project I get 3 builds with 1 success and 2 failures which is fine. But afterwards, when I build the project on Jenkins again (with no modifications on codes), I get 1 build and that is test3 build with failure.

So is that a bug or something? Where are the 2 other builds? Master and test2?


(And one more thing. I think it's the pretty much the same problem. When I modify only test.py in master, then build the project, I get one build with success. It doesn't build other branches.)

Regards,
Ozcan

nicolas de loof

unread,
Jul 21, 2015, 3:58:01 AM7/21/15
to jenkins...@googlegroups.com
multi-branch support in git-plugin is a poor implementation, and running the job manually will just rebuild the last commit (so only one branch from your 3 ones) not all of them, not even considering build history is irrelevant with branches mixed

If you want actual multi-branch support select a job type which do support scm-api, for sample https://wiki.jenkins-ci.org/display/JENKINS/Multi-Branch+Project+Plugin 

I'd like we deprecate this is git plugin (which would remove 75% of its most unmaintainable code) but this would have HUGE impact on user base



--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9af1cea7-198a-40dc-98e3-71bc372e945d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ozca...@gmail.com

unread,
Jul 21, 2015, 4:23:13 AM7/21/15
to jenkins...@googlegroups.com
I totally agree with you. I thought that I was mising something like some configuration setting.

Multi Branch Plugin solved my problem tho.

Thank you so much!
Reply all
Reply to author
Forward
0 new messages