CI/CD for Node.js application using Jenkins on EC2 — Part-2

Ankit Maheshwari
2 min readAug 3, 2023

In this article, we will host the Node.js app on an AWS EC2 instance. Furthermore, we will use the automation server Jenkins which was hosted on a separate AWS EC2 instance, which was done in part-1. So there will be two EC2 servers one is for Jenkins and the other one is for the Node.js app.

Jenkins will help us to automate the CI/CD process. For every code change from our Node.js app repository, Jenkins will get notified and it will pull the changes into our Jenkins server, install dependencies and run the integration test. If all tests pass, Jenkins is going to deploy the app to the node server. If it fails, developers will be notified.

Part — 1 of this article:

This Article will cover:

  • Setup GitHub/Bitbucket SSH Configuration
  • Adding a New SSH Key to our GitHub/Bitbucket account
  • Clone the repository

Prerequisites:

--

--

Ankit Maheshwari
Ankit Maheshwari

Written by Ankit Maheshwari

Frontend and Backend Developer (Angular, Ionic framework, NodeJS, and MongoDB)

Responses (1)