2.1 Pipeline CI/CD — GitHub, Maven, Jenkins, Artifactory, SonarQube, Docker, Ansible, Tomcat
I hope you had visited the previous stories and this is the continuation of it.
Scenario:
This Lab Setup describes about the inclusion of Ansible to trigger the Playbooks in ’N’ number of target machines. The target machines can be assumed to be INT, QA, UAT, Production Environment.
- I have divided the story in to Two Sections.
2.1 Pipeline CI/CD — GitHub, Maven, Jenkins, Artifactory, SonarQube, Docker, Ansible, Tomcat
2.2 Pipeline CI/CD — GitHub, Maven, Jenkins, Artifactory, SonarQube, Docker, Ansible, Tomcat
In this article, we will discuss the Jenkins Declarative Pipeline Approach of Building the CI/CD Pipeline
Application: Spring Boot Hello World
Tools Used:
- GitHub — Source Code Management
- Maven — Build Tool
- Jenkins — Continuous Integration (CI/CD)
- Artifactory — Artifact Repository Manager
- SonarQube — Code Quality and Code Analysis
- Docker — Container Engine
- Ansible — Configuration Management Tool
- Tomcat — Application Server
Pre-requisites:
- Tools like Jenkins, Artifactory, SonarQube, Ansible Server is installed and the server is up and running
- Jenkins CI/CD — JFrog Artifactory Jenkins Integration
- Jenkins CI/CD — SonarQube Jenkins Integration
- Please make sure the following Jenkins Plugins are installed for this lab setup in the Jenkins Server — — Pipeline, Artifactory, SonarQube Scanner for Jenkins, Ansible, Email Extension Plugin.
Lab Setup:
- Creation of the Jenkins Job — — Pipeline Project
- Go to Pipeline Section, Select the Git Repository and save the job
GitHub URL: https://github.com/Dileeprithvi/DeclarativeCI-CD-Ansible.git
Branch: master
- Clicking on the build to trigger the Job.
- Please find the Output Below.
Jenkins Console Output Log is attached for your reference in the GitHub.
To check the code is deployed correctly, Please follow the below URL Pattern:
http://<publicip>:8050/helloworld/hello
- Jenkins Pipeline Stages Screenshot:
- Breaking the Code:
We can examine the Jenkinsfile in this Page