Run maven in non-interactive mode. 28/17728/1
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Wed, 20 Feb 2019 14:55:08 +0000 (09:55 -0500)
committerPaul Vinciguerra <pvinci@vinciconsulting.com>
Wed, 20 Feb 2019 14:59:32 +0000 (09:59 -0500)
Stop mvn from printing the download progress of each file transfer.

-------
mvn -h

usage: mvn [options] [<goal(s)>] [<phase(s)>]

Options:
 ...
 -B,--batch-mode                        Run in non-interactive (batch)
                                        mode

Change-Id: I5cd0fc2843bece11b3d437c1d6e563cbe835cd2a
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
jjb/scripts/maven_push_functions.sh
jjb/vpp/include-raw-vpp-docs.sh
jjb/vpp/include-raw-vpp-make-test-docs.sh
jjb/vpp/include-raw-vpp-sphinx-docs.sh

index 564c6ef..6627615 100644 (file)
@@ -30,7 +30,7 @@ function push_file ()
 
     # Disable checks for doublequote to prevent glob / splitting
     # shellcheck disable=SC2086
-    $MVN org.apache.maven.plugins:maven-deploy-plugin:deploy-file \
+    $MVN -B org.apache.maven.plugins:maven-deploy-plugin:deploy-file \
         -Dfile=$push_file -DrepositoryId=$repoId \
         -Durl=$url -DgroupId=$GROUP_ID \
         -Dversion=$version -DartifactId=$artifactId \
index 5ab0df2..760eaea 100644 (file)
@@ -45,6 +45,6 @@ if [[ ${JOB_NAME} == *merge* ]]; then
     </distributionManagement>
   </project>
 EOF
-  ${MVN} site:site site:deploy -gs "${GLOBAL_SETTINGS_FILE}" -s "${SETTINGS_FILE}" -T 4C
+  ${MVN} -B site:site site:deploy -gs "${GLOBAL_SETTINGS_FILE}" -s "${SETTINGS_FILE}" -T 4C
   cd -
-fi
\ No newline at end of file
+fi
index b3b5b0d..a99adba 100644 (file)
@@ -44,6 +44,6 @@ if [[ ${JOB_NAME} == *merge* ]]; then
     </distributionManagement>
   </project>
 EOF
-  ${MVN} site:site site:deploy -gs "${GLOBAL_SETTINGS_FILE}" -s "${SETTINGS_FILE}" -T 4C
+  ${MVN} -B site:site site:deploy -gs "${GLOBAL_SETTINGS_FILE}" -s "${SETTINGS_FILE}" -T 4C
   cd -
 fi
index 100dee6..4d14e7a 100644 (file)
@@ -45,6 +45,6 @@ if [[ ${JOB_NAME} == *merge* ]]; then
     </distributionManagement>
   </project>
 EOF
-  ${MVN} site:site site:deploy -gs "${GLOBAL_SETTINGS_FILE}" -s "${SETTINGS_FILE}" -T 4C
+  ${MVN} -B site:site site:deploy -gs "${GLOBAL_SETTINGS_FILE}" -s "${SETTINGS_FILE}" -T 4C
   cd -
 fi