From 4faa234053f72a63b646f64be5a5b75900fc0426 Mon Sep 17 00:00:00 2001 From: Martin Weise <martin.weise@tuwien.ac.at> Date: Wed, 3 Jul 2024 07:13:56 +0200 Subject: [PATCH] Allow SonarQube to fail --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 55b08e0570..0edf4a8ab4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -40,6 +40,7 @@ build-metadata-service: - /^release-.*/ script: - "mvn -f ./dbrepo-metadata-service/pom.xml clean install $MAVEN_OPTS -DskipTests" + # Compiled classes are needed for SonarQube in later stages artifacts: when: always paths: @@ -100,6 +101,7 @@ build-data-service: - build-metadata-service script: - "mvn -f ./dbrepo-data-service/pom.xml clean package $MAVEN_OPTS -DskipTests" + # Compiled classes are needed for SonarQube in later stages artifacts: when: always paths: @@ -322,6 +324,7 @@ scan-sonarqube: - build-metadata-service script: - 'sonar-scanner -Dsonar.token="${CI_SONAR_TOKEN}"' + allow_failure: true cache: policy: pull key: "${CI_COMMIT_SHORT_SHA}" -- GitLab