Skip to content
Snippets Groups Projects
Unverified Commit e4109243 authored by Massimiliano Adamo's avatar Massimiliano Adamo
Browse files

move image from global to stage

parent 50b66419
No related branches found
No related tags found
No related merge requests found
Pipeline #964 passed
--- ---
image:
name: sonarsource/sonar-scanner-cli:${SONAR_SCANNER_CLI_VERSION}
stages: stages:
- sonarqube - sonarqube
test: sonarqube:
image: sonarsource/sonar-scanner-cli:${SONAR_SCANNER_CLI_VERSION}
stage: sonarqube stage: sonarqube
variables: variables:
SONAR_PROJECT_BASE_DIR: "$CI_PROJECT_DIR" SONAR_PROJECT_BASE_DIR: "$CI_PROJECT_DIR"
script: 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. - /usr/bin/entrypoint.sh sonar-scanner -Dsonar.projectKey="$CI_PROJECT_NAME"
tags: # NOT to be confused with git tags. This is GitLab tag tags:
- sonarqube - sonarqube
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment