X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;ds=sidebyside;f=shell%2Fmaven-sonar.sh;fp=shell%2Fmaven-sonar.sh;h=9d13003281c136f435630327790c3d7a16dc8f33;hb=657764a332291f18c045fea25887d92388172bc6;hp=5b460c5139baa214bef4a76a66172d92a9d050f0;hpb=24d80c063923fc2ae4e76a5797ae471601c18569;p=releng%2Fglobal-jjb.git diff --git a/shell/maven-sonar.sh b/shell/maven-sonar.sh index 5b460c51..9d130032 100644 --- a/shell/maven-sonar.sh +++ b/shell/maven-sonar.sh @@ -39,9 +39,11 @@ if [ "$SONAR_HOST_URL" = "https://sonarcloud.io" ]; then # shellcheck disable=SC2236 if [ ! -z ${GERRIT_CHANGE_NUMBER+x} ]; then GERRIT_SHORT_LIVED_BRANCH=${GERRIT_CHANGE_NUMBER}-${GERRIT_PATCHSET_NUMBER} + lowercase_SONARCLOUD_QUALITYGATE_WAIT=$(echo "$SONARCLOUD_QUALITYGATE_WAIT" | tr '[:upper:]' '[:lower:]') params+=("-Dsonar.analysis.gerritProjectName=$PROJECT") params+=("-Dsonar.branch.target=$GERRIT_BRANCH") params+=("-Dsonar.branch.name=$GERRIT_SHORT_LIVED_BRANCH") + params+=("-Dsonar.qualitygate.wait=$lowercase_SONARCLOUD_QUALITYGATE_WAIT") fi fi fi