You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. set -euo pipefail
  3. source .cirrus/cirrus-env
  4. : "${SONAR_HOST_URL?}" "${SONAR_TOKEN?}"
  5. git fetch --unshallow || true
  6. if [ -n "${GITHUB_BASE_BRANCH:-}" ]; then
  7. git fetch origin "${GITHUB_BASE_BRANCH}"
  8. fi
  9. ./gradlew sonar \
  10. -DbuildNumber="$BUILD_NUMBER" \
  11. -Dsonar.projectKey=sonarqube \
  12. -Dsonar.host.url="$SONAR_HOST_URL" \
  13. -Dsonar.token="$SONAR_TOKEN" \
  14. -Dsonar.analysis.buildNumber="$BUILD_NUMBER" \
  15. -Dsonar.analysis.pipeline="$PIPELINE_ID" \
  16. -Dsonar.analysis.repository="$GITHUB_REPO" \
  17. -Dsonar.analysis.sha1="$GIT_SHA1" \
  18. -Dsonar.exclusions=**/design-system/src/theme/** \
  19. --parallel --configure-on-demand --console plain -Pqa