We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a17ef8 commit f1aec2dCopy full SHA for f1aec2d
Jenkinsfile
@@ -38,8 +38,10 @@ pipeline {
38
stage('sonarqube analysis') {
39
steps {
40
container ('maven') {
41
- withSonarQubeEnv('sonar') {
42
- sh "mvn sonar:sonar -o -gs `pwd`/configuration/settings.xml -Dsonar.branch=$BRANCH_NAME -Dsonar.login=$SONAR_TOKEN_ID"
+ withCredentials([string(credentialsId: "$SONAR_TOKEN_ID", variable: 'SONAR_TOKEN')]) {
+ withSonarQubeEnv('sonar') {
43
+ sh "mvn sonar:sonar -o -gs `pwd`/configuration/settings.xml -Dsonar.branch=$BRANCH_NAME -Dsonar.login=$SONAR_TOKEN_ID"
44
+ }
45
}
46
timeout(time: 1, unit: 'HOURS') {
47
waitForQualityGate abortPipeline: true
0 commit comments