From 50b6641953f39409cb69773dcb17239021568978 Mon Sep 17 00:00:00 2001 From: Massimiliano Adamo <massimiliano.adamo@geant.org> Date: Mon, 12 Apr 2021 17:08:21 +0200 Subject: [PATCH] add sonarqube --- .gitlab-ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..1f8c6c1 --- /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 -- GitLab