Run maven in batch and quite mode during maven artifacts upload
This will give us a much cleaner output in CI.
Change-Id: If3182f1baead52673fb137663c95d7ee3d6a8cf5
diff --git a/tools/build/onos-maven-upload.py b/tools/build/onos-maven-upload.py
index 9a54941..fb80094 100755
--- a/tools/build/onos-maven-upload.py
+++ b/tools/build/onos-maven-upload.py
@@ -91,7 +91,10 @@
# Upload the artifacts to the remote Nexus repository
for artifact_id, info in artifacts_to_upload.items():
artifacts = info["artifacts"]
- call_funct = ["mvn", "deploy:deploy-file",
+ call_funct = ["mvn",
+ "-B", # Run in batch mode
+ "-q", # Run in quiet mode, will report only warning or errors
+ "deploy:deploy-file",
"-Durl=" + destination_repo_url,
"-DrepositoryId=" + repo_id,
"-DgroupId=" + group_id,