Node To-Do App Deployment using Jenkins

- Select Jenkins Freestyle Project
Select GitHub project and provide your github project URL
Provide GitHub Repository URL...
Branches to build
Build Trigger--Select 'GitHub hook trigger for GITScm polling'
For automatic deployment, we use Github webhook as a Trigger
In Build Steps, Select 'Execute Shell'
docker-compose down
docker-compose up -d --no-deps --build web
echo "Code Deployed Successfully"
Setting up Git Hub Web Hook
Go to code repository settings
select Webhooks
Add webhook
Provide Jenkins link as shown below & select event as 'PUSH' for now
Webhook is now activated
We will try to make some changes in our code...
As soon as we made changes in the repository code, Jenkins started the deployment automatically...
Console Output:
Node To-Do App deployment using Jenkins is done successfully...!!!
Happy Learning...!!! :)
Subscribe to my newsletter
Read articles from Rushikesh Rawool directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Rushikesh Rawool
Rushikesh Rawool
Passionate ORACLE DATABASE ADMINISTRATOR | DevOps Enthusiast with a strong background in cloud architecture and solutions engineering.