Jenkins - CI/CD

Jenkins - CI/CD

A beginners introduction to jenkins.

Jenkins :

Jenkins is an open source automation tool to automate the testing, building and deploying phases and it facilitates continuous Integration and continuous Deployment.

In this, we are going to perform CI/CD for node js application using jenkins.

  1. Install jenkins and run it.

  2. Select new item -> Enter item name -> choose pipeline.

  3. we are using this repo for CI/CD.

  4. Add the following plugins for docker.

    Also add nodejs, OWASP plugins.

  5. Once the plugins are added, we need to add the tools.

  6. Add the following script for git checkout -> Apply -> save.

  7. Now run the pipeline to check if it working.

  8. Add the script for installing dependencies.

  9. Again apply-> save and check if the dependencies are installed.

  10. Add the OWASP script for scaning the vulnerabilities in project.

  11. Test this also by building the project.

  12. Add scripts for docker commands.

  13. Test if the docker commands are working,

  14. Add the script for running the docker container and this is our deployment phase.

  15. Check if it is success

  1. Open the port in the browser,

Conclusion :

We have successfully implemented CI/CD using jenkins for our node js application.

Did you find this article valuable?

Support Gopinath J by becoming a sponsor. Any amount is appreciated!