From fa86fa322727e32691a2f8f2b0a2f4c30547c99a Mon Sep 17 00:00:00 2001 From: "Saralegui Vallejo, Unai" <unai.saralegui@tecnalia.com> Date: Wed, 12 May 2021 15:18:37 +0200 Subject: [PATCH] Create sonarqube-check.yml --- sonarqube/sonarqube-check.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 sonarqube/sonarqube-check.yml diff --git a/sonarqube/sonarqube-check.yml b/sonarqube/sonarqube-check.yml new file mode 100644 index 0000000..a65bdd5 --- /dev/null +++ b/sonarqube/sonarqube-check.yml @@ -0,0 +1,16 @@ +sonarqube-check: + image: + name: $ACR_URL/sonar-scanner-cli:latest + entrypoint: [""] + variables: + SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache + GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task + cache: + key: "${CI_JOB_NAME}" + paths: + - .sonar/cache + script: + - sonar-scanner + allow_failure: true + only: + - master # or the name of your main branch -- GitLab