From 7880ae781ff971cd481756b4378d95f3f46a2a8a Mon Sep 17 00:00:00 2001 From: Thilo Schwarz Date: Sun, 6 Apr 2025 12:58:48 +0200 Subject: [PATCH] Fix multiline formatting for SonarCloud scan script Updated the GitLab CI configuration to properly format the SonarCloud scan script using a multiline approach. This ensures better readability and maintainability of the pipeline configuration. --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2bb52cf..82c6dac 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -40,10 +40,12 @@ sonarcloud_scan: script: - echo "Setting up SonarCloud scan..." - cd ${GITLAB_CLONE_DIR} - - mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \ + - | + mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \ -Dsonar.host.url=${SONAR_HOST_URL} \ -Dsonar.projectKey=${SONAR_PROJECT_KEY} \ -Dsonar.organization=${SONAR_ORGANIZATION} \ -Dsonar.login=${SONAR_TOKEN} + only: - develop