From: Zack Cerza Date: Fri, 8 Nov 2024 19:43:16 +0000 (-0700) Subject: make-dist: Quiet submodule operations in Jenkins X-Git-Tag: testing/wip-vshankar-testing-20241118.055430-debug~22^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=80674a3e12d73244d848b1ae9fc191f817339894;p=ceph-ci.git make-dist: Quiet submodule operations in Jenkins Signed-off-by: Zack Cerza --- diff --git a/make-dist b/make-dist index 033bedebd87..64ceef20d5e 100755 --- a/make-dist +++ b/make-dist @@ -35,7 +35,8 @@ echo "version $version" # update submodules echo "updating submodules..." force=$(if git submodule usage 2>&1 | grep --quiet 'update.*--force'; then echo --force ; fi) -if ! git submodule sync || ! git submodule update $force --init --recursive --progress; then +quiet_or_progress=$(if test -n "$JENKINS_URL"; then echo --quiet; else echo --progress; fi) +if ! git submodule sync || ! git submodule update $force --init --recursive $quiet_or_progress; then echo "Error: could not initialize submodule projects" echo " Network connectivity might be required." exit 1