Commit fab4e194 authored by Guilhem Bonnefille's avatar Guilhem Bonnefille
Browse files

Remove checks on SONAR_PROJECT_KEY and SONAR_PROJECT_NAME

These variables are necessarily set due to initial declarations
at the top of gitlab-ci.yml.
parent e097e0a5
Pipeline #1248 failed with stages
in 22 minutes and 20 seconds
......@@ -27,7 +27,7 @@ verify:
stage: verify
script:
- mvn $MAVEN_CLI_OPTS verify site
- test -n "$SONAR_TOKEN" -a -n "$SONAR_PROJECT_KEY" -a "$SONAR_PROJECT_NAME" && mvn $MAVEN_CLI_OPTS sonar:sonar
- test -n "$SONAR_TOKEN" && mvn $MAVEN_CLI_OPTS sonar:sonar
-Dsonar.login=${SONAR_TOKEN}
-Dsonar.branch.name=${CI_COMMIT_REF_NAME}
-Dsonar.projectKey="$SONAR_PROJECT_KEY"
......@@ -48,8 +48,6 @@ verify:warning:
allow_failure: true
rules:
- if: $SONAR_TOKEN == null
- if: $SONAR_PROJECT_KEY == null
- if: $SONAR_PROJECT_NAME == null
# Convert and import in GitLab coverage data.
# The information is then available directly in merge-request view.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment