From c53c2cb4edc207b2d348f471bb0d714d1e4a501d Mon Sep 17 00:00:00 2001 From: Mpho raf Date: Tue, 15 Jun 2021 22:09:40 +0200 Subject: [PATCH] Fix using build tag --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5260ec1..e364f9d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,7 +22,7 @@ pipeline { } steps { withSonarQubeEnv('mysonar') { // If you have configured more than one global server connection, you can specify its name - sh "sonar-scanner -X -Dsonar.projectKey=${JOB_BASE_NAME}:${BRANCH_NAME}" + sh "sonar-scanner -Dsonar.projectKey=${BUILD_TAG}:${BRANCH_NAME}" } } }