Skip to content

Commit 50dde28

Browse files
authored
Update Jenkinsfile
1 parent 39e5cd3 commit 50dde28

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Jenkinsfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ pipeline {
1616
sh "mvn test"
1717
}
1818
}
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-
}
19+
stage ('sonar analysis'){
20+
steps{
21+
sh 'mvn clean verify sonar:sonar \
22+
-Dsonar.projectKey=cicd-deploy \
23+
-Dsonar.host.url=http://15.206.94.130:9000 \
24+
-Dsonar.login=squ_52adeabc24df0c7bff0d7faa18d3bbd2527f5c66'
2525
}
2626
}
2727
}

0 commit comments

Comments
 (0)