Make sonar conditional on token

This will stop forked repo tests failing
This commit is contained in:
Zedifus 2023-07-18 21:21:36 +01:00
parent be37f8f49e
commit 18d9ffa6b3

View File

@ -67,6 +67,8 @@ sonarcloud-check:
tags: tags:
- docker - docker
rules: rules:
- exists:
- $SONAR_TOKEN
- if: "$CODE_QUALITY_DISABLED" - if: "$CODE_QUALITY_DISABLED"
when: never when: never
- if: "$CI_COMMIT_TAG || $CI_COMMIT_BRANCH" - if: "$CI_COMMIT_TAG || $CI_COMMIT_BRANCH"