From: Lott, Christopher (cl778h) Date: Wed, 26 Feb 2020 19:46:20 +0000 (-0500) Subject: Squelch progress messages in cmake-sonar.sh X-Git-Tag: v0.52.0~11 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F99%2F63199%2F2;p=releng%2Fglobal-jjb.git Squelch progress messages in cmake-sonar.sh Reduce volume of output from wget and unzip by adding the -q flag to the invocations in cmake-sonar.sh There's little need to see wget progress messages or archive contents in the build log. Change-Id: Iaaaa4071e17b6ef42c85409e8df3653df1f42252 Signed-off-by: Lott, Christopher (cl778h) --- diff --git a/releasenotes/notes/squelch-cmake-sonar-script-4d2122df78d463eb.yaml b/releasenotes/notes/squelch-cmake-sonar-script-4d2122df78d463eb.yaml new file mode 100644 index 00000000..67feac3e --- /dev/null +++ b/releasenotes/notes/squelch-cmake-sonar-script-4d2122df78d463eb.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Reduce volume of output from wget and unzip by adding the -q flag + to the invocations in cmake-sonar.sh There's little need to see + wget progress messages or archive contents in the build log. diff --git a/shell/cmake-sonar.sh b/shell/cmake-sonar.sh index 0a41a95a..43e776f8 100644 --- a/shell/cmake-sonar.sh +++ b/shell/cmake-sonar.sh @@ -21,14 +21,14 @@ make_opts="${MAKE_OPTS:-}" set -ex -o pipefail cd /tmp || exit 1 -wget -O /tmp/sonar-scan.zip \ +wget -q -O /tmp/sonar-scan.zip \ "https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip" -unzip sonar-scan.zip +unzip -q sonar-scan.zip sudo mv sonar-scanner-* /opt/sonar-scanner -wget -O /tmp/bw.zip \ +wget -q -O /tmp/bw.zip \ "https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip" -unzip bw.zip +unzip -q bw.zip sudo mv build-wrapper-* /opt/build-wrapper mkdir -p "$build_dir"