Jenkins and GitHub webhook: HTTP 403

0 votes
So I have a github repo which is connected properly to my Jenkins. I want Jenkins to build the job every time there’s a new commit(change in the code). I've installed the GitHub plugin into Jenkins and have allowed for Jenkins to manage it's own hook URLs.

When I have GitHub send a test payload I find this in the nginx webserver that front's Jenkins:

207.97.227.233 - - [15/Sep/2011:07:36:51 +0000] "POST /github-webhook/ HTTP/1.1" 403 561 "-" "-"
Aug 9, 2018 in Jenkins by lina
• 8,100 points
532 views

1 answer to this question.

0 votes

You need 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/
answered Aug 9, 2018 by Kalgi
• 37,320 points
It didn't work for me even with user:password in url. Please help.

Related Questions In Jenkins

0 votes
1 answer

How can I create global macros and templates in jenkins job builder?

you can append the path to the ...READ MORE

answered Apr 2, 2018 in Jenkins by ajs3033
• 7,240 points
246 views
0 votes
2 answers

Is possible for Jenkins to auto start and stop slave nodes?

Try Jenkins Plugin called as Slave SetupPlugin. This ...READ MORE

answered Aug 6, 2018 in Jenkins by Nilesh
• 6,900 points
614 views
0 votes
1 answer

What are parameterized jobs in jenkins and how to configure it?

Hey @Hannah, Parameterized jobs/builds are the ones ...READ MORE

answered Dec 16, 2018 in Jenkins by Kiyara
488 views
0 votes
1 answer
+13 votes
2 answers
0 votes
1 answer
0 votes
2 answers

RVM and Jenkins setup

Try this: . $(/home/RVM_USER/.rvm/bin/rvm env 1.9.3@rails-3.2.3 --path) make sure ...READ MORE

answered Aug 10, 2018 in Jenkins by Nilesh
• 6,900 points
97 views
0 votes
1 answer

Authenticate Jenkins CI for Github private repository

when you have a server that needs ...READ MORE

answered Aug 13, 2018 in Jenkins by Kalgi
• 37,320 points
326 views