From 342a7b3d79be259becddabdcd05ca6b12fbf8e0a Mon Sep 17 00:00:00 2001 From: ssube Date: Fri, 20 Dec 2019 11:46:18 -0600 Subject: [PATCH] fix(build): base sonar project key on gitlab group --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 39725da..33a43ee 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -107,9 +107,9 @@ sonar-success: script: - make node_modules - sonar-scanner - -Dsonar.projectKey=ssube_rollup-template + -Dsonar.projectKey=${CI_PROJECT_NAMESPACE}_${CI_PROJECT_NAME} -Dsonar.projectVersion=${CI_COMMIT_REF_SLUG} - -Dsonar.organization=ssube-github + -Dsonar.organization=${CI_PROJECT_NAMESPACE}-github -Dsonar.sources=src/,test/ -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${SONAR_SECRET}