Hi Lionel, It's working once I added the following to Jenkinsfile : properties([pipelineTriggers([[$class: 'GitHubPushTrigger']])])
Thanks On Thursday, October 6, 2016 at 5:46:52 PM UTC+8, Lionel Orellana wrote: > > Hi Corey > > Unfortunately I don't have this server running anymore. I was just using > it to learn stuff. But I do remember that re-registering hooks worked > straight away for me. Are you behind a firewall? I was running this on a > cloud provider with direct access from the outside world (e.g. from > github.com) When you say it doesn't work, what error or wrong behavior > do you see? > > Lionel > > On Thursday, 6 October 2016 16:49:12 UTC+11, Corey Wei wrote: >> >> Hi Lionel, >> >> I just tested this on Jenkins 2.19.1. >> Looks like "Re-register hooks for all jobs" is not working for my >> multibranch job. Is there anything I am missing? >> >> Thanks >> >> On Monday, May 9, 2016 at 9:08:52 PM UTC+8, Lionel Orellana wrote: >>> >>> >>> Apologies for my rather disorganised thought process in this thread. >>> >>> I just found the 'Re-register hooks for all jobs' in the global config >>> (GitHub Servers Advanced options). That created the hooks correctly for me >>> without any additional configuration in the multibranch job. >>> >>> Thanks. >>> >>> On Saturday, 7 May 2016 16:38:49 UTC+10, Lionel Orellana wrote: >>>> >>>> Well seems like the solution would for the GitHub Plugin to support >>>> Multibranch pipelines >>>> >>>> On Saturday, 7 May 2016 12:29:22 UTC+10, Lionel Orellana wrote: >>>>> >>>>> Hi All >>>>> >>>>> How can I trigger a build on a multibranch pipeline where there is a >>>>> push in github and Jenkins requires authentication. >>>>> >>>>> I tried "Trigger builds remotely (e.g., from scripts)" but the token >>>>> generated here isn't enough for a github webhook to authenticate with >>>>> Jenkins. Github throws "Authentication required". This is using a >>>>> webhook like <jenkins_url>/job/<job name>/build?token=some token where >>>>> the token matches what's in the "Trigger builds remotely" configuration. >>>>> >>>>> Thanks >>>>> >>>>> Lionel. >>>>> >>>>> >>>>> >>>> -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b9cf3400-2e42-491a-94d7-646375e11636%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.