i followed your suggestions - i don’t see a change in the result
raw-additional-info.txt (21.5 KB)
the new job definition is:
sonar-check:
stage: sonar-check
image:
name: ${CYBELLUM_PSA_REGISTRY}/sonarsource/sonar-scanner-cli:5.0.1
entrypoint: [""]
tags: !reference [.global_tags, tags]
retry: !reference [.global_retry, retry]
variables:
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task
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:
- 'echo "sonar-values:"'
- 'echo " sonar.token: ${SONAR_TOKEN}"'
- 'echo " sonar.host.url: ${SONAR_HOST_URL}"'
- 'echo " sonar.pullrequest.key: ${CI_MERGE_REQUEST_IID}"'
- 'echo " sonar.pullrequest.base: ${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}"'
- 'echo " sonar.pullrequest.branch: ${CI_COMMIT_REF_NAME}"'
- sonar-scanner -X -Dsonar.pullrequest.key=${CI_MERGE_REQUEST_IID} -Dsonar.pullrequest.base=${CI_MERGE_REQUEST_TARGET_BRANCH_NAME} -Dsonar.pullrequest.branch=${CI_COMMIT_REF_NAME}
needs: []
rules:
- if: $Flow=="sonar_check"
when: always
allow_failure: true
