🏃♂️Continuous Integration with GitHub and Jenkins
Every time your developer makes changes to the code in the Github Repository will you login to Jenkins and click "Build Now" all the time??
Last updated
Every time your developer makes changes to the code in the Github Repository will you login to Jenkins and click "Build Now" all the time??
Last updated
What if I say we can automate that too? ☺️ Let us do something so that if there is any change in the code Jenkins should detect it and Build a new file, pass it to ANSIBLE, which will create our container and move the file in it & BOOM!!! our application is live.
Sign into your GitHub account and select your repository
Go to settings option >> Choose >> click on Add Webhook (provide password, if asked)
You will be asked to enter the Payload URL, you will get this from Jenkins.
Login to Jenkins
Goto pipeline >> Configure
Pipeline Triggers>> copy the formate >> made the required changes
Add webhook>> Paste the URL
After putting the url scroll down and select on
Add webhook
You have successfully created your webhooks Now go to your Depoyment Job and do these settings
THAT'S ALL!! We have successfully implemented Continuos Integration Let's Try it out my making some changes in the code.