Skip to main content

Command Palette

Search for a command to run...

Day 24 Task: Complete Jenkins CI/CD Project

Day-24 #90daysodevopschallenge

Updated
β€’1 min readβ€’View as Markdown
Day 24 Task: Complete Jenkins CI/CD Project
N

Nikhil Patil

πŸ‘¨β€πŸ’» I love Linux & DevOps! πŸ’»

🐧 LinuxπŸ‘¨β€πŸ’» | DevOps & Cloud Enthusiast | 🌍 Azure Admin | πŸ› οΈ Ansible | πŸ“‚ Git | 🐳 Docker | πŸ”‘ OpenLDAP | πŸ–₯️ System Admin | | πŸš€ Jenkins πŸ› οΈ

🏠 Pune

🌟 I'm really into using and managing computers with Linux. I also like making things work smoothly and quickly.

πŸ“– I work with Microsoft Azure, use tools like Ansible and Git to automate tasks, and make software run in containers with Docker.

πŸ”’ I handle access and security using OpenLDAP, and I'm all about keeping systems running smoothly.

🌐 Exploring opportunities in cloud and DevOps.

πŸ“§ Get in touch: nikrpatil1997@gmail.com

πŸ“Œ Task-01 Jenkins with Github Webhooks

GitHub Webhook
GitHub webhooks are a way for GitHub to notify external systems, like web services or applications, about events that happen in a GitHub repository. They allow you to receive real-time updates whenever certain actions occur, such as pushing code, creating issues, or opening pull requests.

Fork the https://github.com/Nikhil418/node-todo-cicd.git repository from GitHub

Create a connection to your Jenkins job and your GitHub Repository via GitHub Integration.

Check the GitHub hook trigger option to enable

Then go to the repo setting in that webhook and add a new webhook

In payload URL add the URL http://<jenkins'_server_ip>:8080/github-webhook

Successfully connected GitHub webhook to Jenkins server

Added build steps to execute

verify in browser

Now make changes in the GitHub repo and commit

After changes are detected it automatically triggers build

πŸ“Œ Task -02 docker-compose with GitHub Webhooks

Add Github repo URL to take code from GitHub

Successfully connected GitHub webhook to Jenkins

Added build steps

Successfully run docker-compose

Verify in the browser app successfully running