How to trigger a Jenkins build when a push is made to a private github repository

前端 未结 2 518
傲寒
傲寒 2021-02-05 09:17

My Jenkins Continuous Integration Server is on running on a Ubuntu host, configured as follows:

  • Jenkins v 1.463
  • github-api 1.23
  • Jenkins GIT plugi
2条回答
  •  感动是毒
    2021-02-05 09:42

    I had a similar problem, and after looking at the main Jenkins System Log I saw the following:

    Feb 15, 2013 8:35:44 PM hudson.security.csrf.CrumbFilter doFilter
    WARNING: No valid crumb was included in request for /github-webhook/.  Returning 403.
    

    The solution is to switch off the CSRF protection - Manage Jenkins > Configure System > Prevent Cross Site Request Forgery exploits. The checkbox is just at the bottom of the first configuration section. After that it all seemed to work happily.

提交回复
热议问题