Problem :
I am working on a CI setup to configure github - Jenkins web hook for triggering builds with code commits on github. Below are the current configuration details
- My Jenkins is inside an AWS private subnet
- I have plugin: "GitHub Web Hook" configured with API URL, Username and OAuth token, Test Credentials gives a success message.
- I have "Build when a change is pushed to GitHub" selected under "Build Triggers"
Jenkins job works perfectly with the manual build. But it does not work (automatic build trigger) when a code commit is done on the github.
Need Help on:
- How can I debug in detail about this situation, if the "Git hub webhook" configuration test worked, can I say git hub is able to connect to my Jenkins which is in private or it does something else to test ?
- Please rectify / guide on the steps to get it working
After spending some hectic hours, I have got it to a working state. Below is just a summary of what I have done:
You can check commit a change into the github and github shall send a POST request to your jenkins server which will trigger the build. You can check the logs in Recent Deliveries section.
If this same can be done for a private jenkins server like using port forwarding, or any other way. Please update.