An end to end CI-CD projects implementing DevSecOps principles
In this project, we will be see how to use Git, GitHub , Jenkins,SonarQube and DEPLOY on a AWS EC2.,
*Follow this project *
- Git
- Github
- Jenkins
- SonarQube
- AWS EC2
- Java open-jdk 11
- Maven
Push all the web application page code file into github
- Install sonarqube scanner plugins
- go to manage jenkins > manage pulgins > search for plugins > install without restart
- Create a Project Manually
- Give name to your project , Project key then click on setup
- Click on other ci and generate token
- Copy that token and save somewhere because we need this token later.
- go to manage jenkins > Manage Credentials > system > Add credentials > secret text file > paste token we create in sonarqube and save and apply.
- go to manage Jenkins > Global tool configuration > Add Maven and SonarQube Scanner
- go to manage Jenkins > Configure System > Add SonarQube Server
- go to new item > enter item name > Pipeline > ok
- go to pipeline and create your pipeline script and save and apply
- Click on Build now to build your job
- to see output of the build , click on build > console output
Jenkins Output :
You can find your jar file build by maven at /var/lib/jenkins/workspace/devopscicd/target/ this location
Sonarqube Output:
Jar file Deploy Output: