From: Thanh Ha Date: Fri, 21 Jul 2017 15:56:53 +0000 (-0400) Subject: Disable Maven transfer output X-Git-Tag: v0.6.0~1^2 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F09%2F5609%2F1;p=releng%2Flftools.git Disable Maven transfer output Enable --batch-mode and set transfer logger to WARN to prevent Maven from printing the download/upload progress indicators in console logs. Issue: https://trello.com/c/uSwEfMmP/542-make-build-rpm-stream-console-output-less-verbose Change-Id: I00d323192a9726e5b6f7b92ab80c424bfe3ab81f Signed-off-by: Thanh Ha --- diff --git a/shell/deploy b/shell/deploy index 09bc634a..760d28c5 100755 --- a/shell/deploy +++ b/shell/deploy @@ -470,6 +470,10 @@ deploy_maven_file () { params+=("-Dclassifier=\"$classifier\"") fi + # Disable the Maven transfer output. + params+=("--batch-mode") + params+=("-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn") + echo "Deploying $file to $nexus_url..." # make sure the script bombs if we fail an upload