How to execute this pipeline
- Sonarscanner
- Sonarqube server
- jenkins server
- nexus server
- change the credetilas of nexus server as per our requirement
- create a new repo in nexus with version policy as "snapshot"
- modiy the pipeline as per our sonarscanner name and sonarqube server name
Use the below code in sonarqube analysis report. sonar.projectKey=Ncodeit sonar.projectName=Ncodeit sonar.projectVersion=2.0 sonar.sources=/var/lib/jenkins/workspace/$JOB_NAME/src/ sonar.binaries=target/classes/com/visualpathit/account/controller/ sonar.junit.reportsPath=target/surefire-reports sonar.jacoco.reportPath=target/jacoco.exec sonar.java.binaries=src/com/room/sample