Skip to content

Commit e898591

Browse files
committed
Add retry approach
1 parent 782172d commit e898591

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

jobs/bootimagebump.Jenkinsfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ node {
6262
cd installer
6363
git remote -v
6464
git remote add upstream https://github.com/openshift/installer.git
65-
git fetch upstream release-${RELEASE_BRANCH} --timeout=300
65+
retries=3
66+
for i in \$(seq 1 \$retries); do
67+
echo "Attempt \$i of \$retries to fetch upstream/${RELEASE_BRANCH}"
68+
git fetch upstream ${RELEASE_BRANCH} && break || sleep 10
6669
git checkout -b ${PR_BRANCH} upstream/${RELEASE_BRANCH}
6770
git remote -v
6871
""")

0 commit comments

Comments
 (0)