Working GitHub pull request builder, but nothing triggers for main branch

46 views
Skip to first unread message

Carl Erik Kopseng

unread,
Jan 12, 2016, 8:59:50 PM1/12/16
to Jenkins Users
I have a project I have configured according to the docs for the Github Pull Request Builder's intructions, and it builds and tests the Pull Requests just fine. The problem is that I want it to start builds when it detects changes to the other branches as well, not just for pull requests, and that seems to fail. 

For instance, pushing changes to "dev" should result in an immediate build in Jenkins.

In the advanced section of the Git config of the project, I have this as the value for "Refspec": +refs/heads/*:refs/remotes/origin/* +refs/pull/*:refs/remotes/origin/pr/*

That should download all branches from GitHub and all pull requests. 

I have also ticked 
- Build when a change is pushed to GitHub
- Use github hooks for build triggering

Having both of these seems superfluous, but I am not sure which settings belongs to which pluign, or if the settings of one plugin is a dependant of the other, so I have ticked both. 
The two endpoints that have set up in GitHub hooks is
- /github-webhook/
- /ghprbhook/

Not sure which belongs where, but both of them have the "push"  setting ticked.

The log might help, as I see an error there:
Jan 13, 2016 12:37:23 AM INFO org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber onEvent
Received POST for https://github.com/MWNG/NG-Azure-REST-API
Jan 13, 2016 12:37:23 AM INFO org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber$1 run
Poked NG REST
Jan 13, 2016 12:37:24 AM WARNING org.jenkinsci.plugins.ghprb.GhprbRootAction doIndex
Request not known

As can be seen, something is not handling the request very well. I suspect this might be it, but I have tried setting both application/json and the forms type in the Github hook settings to no avail.

Regards
Carl-Erik





Reply all
Reply to author
Forward
0 new messages