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:
- 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment