Node To-Do App Deployment using Jenkins

  1. Select Jenkins Freestyle Project

  1. Select GitHub project and provide your github project URL

  1. Provide GitHub Repository URL...

  1. Branches to build

  1. Build Trigger--Select 'GitHub hook trigger for GITScm polling'

    For automatic deployment, we use Github webhook as a Trigger

  2. In Build Steps, Select 'Execute Shell'

 docker-compose down
 docker-compose up -d --no-deps --build web
 echo "Code Deployed Successfully"
  1. Setting up Git Hub Web Hook

    Go to code repository settings

  2. select Webhooks

  3. Add webhook

    1. 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...!!! :)

0
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.