[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible F-Droid: always wait for successful `git fetch`

Holger Levsen holger at layer-acht.org
Mon Nov 27 09:43:07 UTC 2017


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 715102a899842c2fa76aeeffdd582654949c469c
Author: Hans-Christoph Steiner <hans at eds.org>
Date:   Mon Nov 27 10:18:08 2017 +0100

    reproducible F-Droid: always wait for successful `git fetch`
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_fdroid_build_apps.sh              | 2 +-
 bin/reproducible_fdroid_test.sh                    | 2 +-
 bin/reproducible_setup_fdroid_build_environment.sh | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/reproducible_fdroid_build_apps.sh b/bin/reproducible_fdroid_build_apps.sh
index 1d33366..5f69573 100755
--- a/bin/reproducible_fdroid_build_apps.sh
+++ b/bin/reproducible_fdroid_build_apps.sh
@@ -26,7 +26,7 @@ if [ -e $WORKSPACE/.git ]; then
     # reuse the git repo if possible, to keep all the setup in fdroiddata/
     cd $WORKSPACE
     git remote set-url origin $GIT_REPO
-    git fetch --tags
+    while ! git fetch origin --tags --prune; do sleep 10; done
     git clean -fdx
     git reset --hard
     git checkout master
diff --git a/bin/reproducible_fdroid_test.sh b/bin/reproducible_fdroid_test.sh
index a7bd866..4ccc8a1 100755
--- a/bin/reproducible_fdroid_test.sh
+++ b/bin/reproducible_fdroid_test.sh
@@ -26,7 +26,7 @@ if [ -e $WORKSPACE/.git ]; then
     # reuse the git repo if possible, to keep all the setup in fdroiddata/
     cd $WORKSPACE
     git remote set-url origin $GIT_REPO
-    git fetch --tags
+    while ! git fetch origin --tags --prune; do sleep 10; done
     git clean -fdx
     git reset --hard
     git checkout master
diff --git a/bin/reproducible_setup_fdroid_build_environment.sh b/bin/reproducible_setup_fdroid_build_environment.sh
index e9b5f83..775ed67 100755
--- a/bin/reproducible_setup_fdroid_build_environment.sh
+++ b/bin/reproducible_setup_fdroid_build_environment.sh
@@ -26,7 +26,7 @@ if [ -e $WORKSPACE/.git ]; then
     # reuse the git repo if possible, to keep all the setup in fdroiddata/
     cd $WORKSPACE
     git remote set-url origin $GIT_REPO
-    git fetch --tags
+    while ! git fetch origin --tags --prune; do sleep 10; done
     git clean -fdx
     git reset --hard
     git checkout master

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list