diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..1f8c6c1bbfe11676a25d1904ee01370478cfc998 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,13 @@ +--- +image: + name: sonarsource/sonar-scanner-cli:${SONAR_SCANNER_CLI_VERSION} +stages: + - sonarqube +test: + 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 + - sonarqube