]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
make-dist: Quiet submodule operations in Jenkins
authorZack Cerza <zack@redhat.com>
Fri, 8 Nov 2024 19:43:16 +0000 (12:43 -0700)
committerZack Cerza <zack@redhat.com>
Fri, 8 Nov 2024 19:43:19 +0000 (12:43 -0700)
Signed-off-by: Zack Cerza <zack@redhat.com>
make-dist

index 033bedebd87f09f50a82b1c63b357bd5ac51b41c..64ceef20d5e90db74a0d143f672157134c0f3266 100755 (executable)
--- 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