mirror of https://github.com/apache/activemq.git
[NO-JIRA] Jenkinsfile sonar credentials fix
This commit is contained in:
parent
7a86e85f3d
commit
6a1a79c658
|
@ -162,11 +162,12 @@ pipeline {
|
||||||
when { expression { return params.sonarEnabled } }
|
when { expression { return params.sonarEnabled } }
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
withCredentials([string(credentialsId: 'SONARCLOUD_TOKEN', variable: 'SONAR_TOKEN')])
|
withCredentials([string(credentialsId: 'SONARCLOUD_TOKEN', variable: 'SONAR_TOKEN')]) {
|
||||||
sh 'echo "Running the Sonar stage"'
|
sh 'echo "Running the Sonar stage"'
|
||||||
sh 'mvn -B -e -fae clean verify sonar:sonar -Dsonar.projectKey=apache_activemq -Dsonar.organization=apache -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${SONAR_TOKEN} -Dsurefire.rerunFailingTestsCount=3'
|
sh 'mvn -B -e -fae clean verify sonar:sonar -Dsonar.projectKey=apache_activemq -Dsonar.organization=apache -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${SONAR_TOKEN} -Dsurefire.rerunFailingTestsCount=3'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue