From c63e147ab10c5b00b2dfdac6df62ee9ef6dd8442 Mon Sep 17 00:00:00 2001 From: "Lott, Christopher (cl778h)" Date: Wed, 26 Feb 2020 14:46:20 -0500 Subject: [PATCH] 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) --- .../notes/squelch-cmake-sonar-script-4d2122df78d463eb.yaml | 6 ++++++ shell/cmake-sonar.sh | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 releasenotes/notes/squelch-cmake-sonar-script-4d2122df78d463eb.yaml 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" -- 2.16.6