Jenkins build on changes in github branch only.

14 views
Skip to first unread message

MT

unread,
Aug 30, 2016, 2:43:46 AM8/30/16
to Jenkins Users
This might be very basic question, something that is puzzling me.
If i want to build my project whenever a change happens in my github branch how do it do that?
What have i done :
    * add web hook for jenkins in my github "http://jenkins_url/github-webhook
   * add build trigger to build only when a change is pushed to github

what's happening today : Any change in any branch triggers this build

Can i use url trigger plugin workaround ? Yes but i think this can be and am sure has been solved in a better manner before.

Please advise

MT

unread,
Aug 30, 2016, 2:48:15 AM8/30/16
to Jenkins Users
forgot to mention the Jenkins slaves in this case are dynamic ( coming from a a cloud infrastructure provider). so i think one issue is no local cache here.
Reply all
Reply to author
Forward
0 new messages