Jenkins and GitHub webhook: HTTP 403

后端 未结 4 1667
失恋的感觉
失恋的感觉 2020-12-08 16:51

I have a GitHub repository which I would like to have notify Jenkins of new commits via a post-receive hook. I\'ve installed the GitHub plugin into Jenkins and have allowed

4条回答
  •  鱼传尺愫
    2020-12-08 17:18

    As I don't allow anonymous access, it turns out I needed to create a specific user for GitHub pushes and to grant it Overall read, Job create and Job read. It was also necessary to bundle the authentication into the webhook URL, like so:

    https://foo:password@jenkins.example.com/github-webhook/
    

提交回复
热议问题