This project demonstrates a basic CI/CD setup using Jenkins, Docker, and GitHub, centered around a simple Node.js application.
- Automate the process of building, testing, and deploying a Node.js app.
- Use Jenkins to trigger the pipeline on each code commit.
- Containerize the app using Docker and optionally push to DockerHub.
- Jenkins – For CI/CD pipeline automation.
- Docker – For containerizing the application.
- GitHub – Code repository & version control.
- DockerHub – To store built images (integration with Jenkins configured).
-
Set up Jenkins on a local/cloud machine.(http://3.82.188.220:8080/)
-
Connected Jenkins to GitHub using credentials to pull code from the repo.
-
Added DockerHub credentials to Jenkins for pushing images.
-
Created a Jenkinsfile with stages: Clone → Build → Test → Docker Build → Deploy.
-
Faced 2 failed pipeline runs due to incorrect Node.js environment and
Dockerfileissues. -
On the 3rd attempt, fixed the pipeline and successfully built, tested, and deployed the application.
-
CI/CD Pipeline is created.






