Jenkins PR triggers a build of PR

31 views
Skip to first unread message

Michael Tidwell

unread,
Feb 21, 2017, 3:05:43 PM2/21/17
to Jenkins Users
Hey Everyone,

Messing around with Jenkins.  Trying to make Jenkins automatically build on a PR, pull request, trigger. I want it to build the new PR code before it gets merged in.
I can actually make Jenkins build when I start a Pull Request, but it builds the old code base not the new PR code.

Any ideas?

Thanks,

Michael Tidwell

Michael Tidwell

unread,
Feb 21, 2017, 3:08:24 PM2/21/17
to Jenkins Users
Also like to note, I'm not using a webhook.  I'm attempting to do this through a "* * * * *" polling method (even though that seems to be frowned upon)

Indra Gunawan (ingunawa)

unread,
Feb 21, 2017, 4:03:58 PM2/21/17
to jenkins...@googlegroups.com

The working solution we have implemented is to use Jenkins Github Pull Request Builder plugin with webhook.  We let the plugin to control the webhook, ie.  the Jenkins user account used by the plugin to check the github REST API would need write permission to the Github repository.

 

That’s the most stable solution.  We hate polling.

--
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/7c68b756-4b57-4192-8238-57fe34613d40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages