Squelch progress messages in cmake-sonar.sh 99/63199/2
authorLott, Christopher (cl778h) <cl778h@att.com>
Wed, 26 Feb 2020 19:46:20 +0000 (14:46 -0500)
committerLott, Christopher (cl778h) <cl778h@att.com>
Wed, 26 Feb 2020 19:48:25 +0000 (14:48 -0500)
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) <cl778h@att.com>
releasenotes/notes/squelch-cmake-sonar-script-4d2122df78d463eb.yaml [new file with mode: 0644]
shell/cmake-sonar.sh

diff --git a/releasenotes/notes/squelch-cmake-sonar-script-4d2122df78d463eb.yaml b/releasenotes/notes/squelch-cmake-sonar-script-4d2122df78d463eb.yaml
new file mode 100644 (file)
index 0000000..67feac3
--- /dev/null
@@ -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.
index 0a41a95..43e776f 100644 (file)
@@ -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"