Skip to content

Commit 782172d

Browse files
committed
Add timeout to fetch upstream
1 parent d0c7121 commit 782172d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

jobs/bootimagebump.Jenkinsfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,7 @@ node {
6262
cd installer
6363
git remote -v
6464
git remote add upstream https://github.com/openshift/installer.git
65-
retries=5
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
69-
done
65+
git fetch upstream release-${RELEASE_BRANCH} --timeout=300
7066
git checkout -b ${PR_BRANCH} upstream/${RELEASE_BRANCH}
7167
git remote -v
7268
""")

0 commit comments

Comments
 (0)