CICD Pipeline using Jenkins & ArgoCD
  • About the project
  • Overview of the application
  • Dockerizing the application
  • Configure EC2 instance to setup the CI pipeline
  • Configure Jenkins on EC2 instance
  • Create Jenkins CI pipeline
  • Setting up SonarQube server
  • Configure DockerHub and GitHub access tokens inside Jenkins
  • Add GitHub Webhook trigger
  • Execute the Jenkins Build
  • Configure EC2 instance to setup the CD pipeline
  • Install MiniKube and Kubectl
  • Install ArgoCD
  • Deploy the app to Kubernetes using ArgoCD
Powered by GitBook
On this page

About the project

NextOverview of the application

Last updated 1 year ago

This is the documentation for and end to end CICD pipeline for a Java Spring Boot application using Jenkins as the Continuous Integration (CI) tool and Argo CD as the Continuous Deployment (CD) tool to deploy the application on a Kubernetes cluster.

The following steps are involved in this pipeline:

  • When an user pushes any code changes to the github repository, a GitHub webhook is triggered automatically which will start the build process in Jenkins ensuring that the pipeline remains responsive to any updates

  • Upon receiving the trigger, Jenkins will clone the code from the repository and use Maven to build an archive of the application

  • To maintain code quality and security, static code analysis is performed using SonarQube. It checks for any code vulnerabilities and ensuring that the application's codebase is clean and secure

  • Using Docker, the maven archive is transformed into a Docker image and it is pushed to DockerHub where the image is tagged, thereby ensuring the versioning process

  • The image with the tag is updated in the deployment manifests repository for the application using shell scripts so that Argo CD will pick up the latest changes and deploy the updated application to the Kubernetes cluster

  • ArgoCD will continuously monitor the manifests repository which contains the deployment and service manifests for the application. Whenever changes are detected, ArgoCD takes care of deploying the latest application to the Kubernetes cluster. This process aligns perfectly with the GitOps approach, where the desired state of the application and infrastructure is defined in Git