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 6ee6458 commit 2fa2866Copy full SHA for 2fa2866
Jenkinsfile
@@ -17,7 +17,7 @@ pipeline {
17
NAMESPACE = 'library'
18
GITLAB_ACCOUNT = 'admin1'
19
APP_NAME = 'devops-sample-s2i'
20
- SONAR_TOKEN_ID= 'sonar-token'
+ SONAR_CREDENTIAL_ID= 'sonar-token'
21
}
22
23
stages {
@@ -38,7 +38,7 @@ pipeline {
38
stage('sonarqube analysis') {
39
steps {
40
container ('maven') {
41
- withCredentials([string(credentialsId: "$SONAR_TOKEN_ID", variable: 'SONAR_TOKEN')]) {
+ withCredentials([string(credentialsId: "$SONAR_CREDENTIAL_ID", variable: 'SONAR_TOKEN')]) {
42
withSonarQubeEnv('sonar') {
43
sh "mvn sonar:sonar -o -gs `pwd`/configuration/settings.xml -Dsonar.branch=$BRANCH_NAME -Dsonar.login=$SONAR_TOKEN"
44
0 commit comments