Skip to content

Commit 2fa2866

Browse files
author
runzexia
authored
Update Jenkinsfile
1 parent 6ee6458 commit 2fa2866

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pipeline {
1717
NAMESPACE = 'library'
1818
GITLAB_ACCOUNT = 'admin1'
1919
APP_NAME = 'devops-sample-s2i'
20-
SONAR_TOKEN_ID= 'sonar-token'
20+
SONAR_CREDENTIAL_ID= 'sonar-token'
2121
}
2222

2323
stages {
@@ -38,7 +38,7 @@ pipeline {
3838
stage('sonarqube analysis') {
3939
steps {
4040
container ('maven') {
41-
withCredentials([string(credentialsId: "$SONAR_TOKEN_ID", variable: 'SONAR_TOKEN')]) {
41+
withCredentials([string(credentialsId: "$SONAR_CREDENTIAL_ID", variable: 'SONAR_TOKEN')]) {
4242
withSonarQubeEnv('sonar') {
4343
sh "mvn sonar:sonar -o -gs `pwd`/configuration/settings.xml -Dsonar.branch=$BRANCH_NAME -Dsonar.login=$SONAR_TOKEN"
4444
}

0 commit comments

Comments
 (0)