From e4109243a57e129c1aa0b5296111d238428939cd Mon Sep 17 00:00:00 2001 From: Massimiliano Adamo <massimiliano.adamo@geant.org> Date: Mon, 12 Apr 2021 17:19:27 +0200 Subject: [PATCH] move image from global to stage --- .gitlab-ci.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1f8c6c1..548677e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,13 +1,12 @@ --- -image: - name: sonarsource/sonar-scanner-cli:${SONAR_SCANNER_CLI_VERSION} stages: - sonarqube -test: +sonarqube: + image: sonarsource/sonar-scanner-cli:${SONAR_SCANNER_CLI_VERSION} stage: sonarqube variables: SONAR_PROJECT_BASE_DIR: "$CI_PROJECT_DIR" script: - - /usr/bin/entrypoint.sh sonar-scanner -Dsonar.projectKey="$CI_PROJECT_NAME" # sonar.projectKey defines the name of the project in SonarQube. In this example it uses the same name of the project in Gitlab. - tags: # NOT to be confused with git tags. This is GitLab tag + - /usr/bin/entrypoint.sh sonar-scanner -Dsonar.projectKey="$CI_PROJECT_NAME" + tags: - sonarqube -- GitLab