Compare commits
2 Commits
631f8ec4b3
...
6421edfc25
| Author | SHA1 | Date | |
|---|---|---|---|
| 6421edfc25 | |||
| 5e67b47a16 |
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@ -86,7 +86,16 @@ spec:
|
||||
container('builder') {
|
||||
sh '''
|
||||
set -euo pipefail
|
||||
apk add --no-cache bash git jq
|
||||
for attempt in 1 2 3 4 5; do
|
||||
if apk add --no-cache bash git jq; then
|
||||
break
|
||||
fi
|
||||
if [ "$attempt" -eq 5 ]; then
|
||||
echo "apk add failed after ${attempt} attempts" >&2
|
||||
exit 1
|
||||
fi
|
||||
sleep $((attempt * 2))
|
||||
done
|
||||
mkdir -p /root/.docker
|
||||
cp /docker-config/config.json /root/.docker/config.json
|
||||
'''
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user