We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39e5cd3 commit 50dde28Copy full SHA for 50dde28
1 file changed
Jenkinsfile
@@ -16,12 +16,12 @@ pipeline {
16
sh "mvn test"
17
}
18
19
- stage('SonarQube Analsyis') {
20
- steps {
21
- withSonarQubeEnv('sonar-scanner') {
22
- sh ''' $SCANNER_HOME/bin/sonar-scanner -Dsonar.projectName=Java-app -Dsonar.projectKey=Java-app \
23
- -Dsonar.java.binaries=. '''
24
- }
+ stage ('sonar analysis'){
+ steps{
+ sh 'mvn clean verify sonar:sonar \
+ -Dsonar.projectKey=cicd-deploy \
+ -Dsonar.host.url=http://15.206.94.130:9000 \
+ -Dsonar.login=squ_52adeabc24df0c7bff0d7faa18d3bbd2527f5c66'
25
26
27
0 commit comments