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. From: <[email protected]> on behalf of Michael Tidwell <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Tuesday, February 21, 2017 at 12:08 PM To: Jenkins Users <[email protected]> Subject: Re: Jenkins PR triggers a build of PR 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) On Tuesday, February 21, 2017 at 3:05:43 PM UTC-5, Michael Tidwell wrote: 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 -- 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 [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7c68b756-4b57-4192-8238-57fe34613d40%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/7c68b756-4b57-4192-8238-57fe34613d40%40googlegroups.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8301172D-73B0-4C09-AC97-0AD160064C7E%40cisco.com. For more options, visit https://groups.google.com/d/optout.
