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,220 points
4,860 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
• 52,350 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,300 points
1,856 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
• 7,060 points
6,845 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
5,091 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,036 views
+2 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
• 7,060 points
1,775 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
• 52,350 points
2,793 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP