Loading .gitlab-ci.yml +9 −0 Changes for .gitlab-ci.yml: 9 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -664,6 +664,15 @@ sonarcloud: # Configure Git securities - git config --global --add safe.directory "${CI_PROJECT_DIR}" script: # Prevent local usage - | if [ ! -z "${CI_LOCAL:-}" ] && [ -z "${SONAR_HOST_URL:-}" ]; then set +x echo ' ' echo ' [ERROR] SonarCloud quality job is meant for CI executions only...' echo ' ' exit 1 fi # Scan with SonarCloud - sonar-scanner -Dsonar.projectVersion=$(git describe --always) -Dsonar.branch.name=${CI_COMMIT_REF_NAME} rules: Loading Loading
.gitlab-ci.yml +9 −0 Changes for .gitlab-ci.yml: 9 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -664,6 +664,15 @@ sonarcloud: # Configure Git securities - git config --global --add safe.directory "${CI_PROJECT_DIR}" script: # Prevent local usage - | if [ ! -z "${CI_LOCAL:-}" ] && [ -z "${SONAR_HOST_URL:-}" ]; then set +x echo ' ' echo ' [ERROR] SonarCloud quality job is meant for CI executions only...' echo ' ' exit 1 fi # Scan with SonarCloud - sonar-scanner -Dsonar.projectVersion=$(git describe --always) -Dsonar.branch.name=${CI_COMMIT_REF_NAME} rules: Loading