File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 24
24
run : |
25
25
# not doing "uses: docker-library/bashbrew@xxx" because it'll build which is slow and we don't need more than just bashbrew here
26
26
mkdir .bin
27
- wget -O .bin/bashbrew 'https://github.com/docker-library/bashbrew/releases/download/v0.1.11/bashbrew-amd64'
27
+ wget --timeout=5 - O .bin/bashbrew 'https://github.com/docker-library/bashbrew/releases/download/v0.1.11/bashbrew-amd64'
28
28
echo '6203635644d0efef2886f8ea9c487995a7abc4166db7a4773e94f89c943a4b04 *.bin/bashbrew' | sha256sum --strict --check -
29
29
chmod +x .bin/bashbrew
30
30
.bin/bashbrew --version
Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ node('multiarch-' + env.BASHBREW_ARCH) { ansiColor('xterm') {
45
45
fi
46
46
47
47
# https://doi-janky.infosiftr.net/job/wip/job/crane
48
- wget -O "crane$ext" "https://doi-janky.infosiftr.net/job/wip/job/crane/lastSuccessfulBuild/artifact/crane-$BASHBREW_ARCH$ext" --progress=dot:giga
48
+ # ipv6 can be extremely slow on s390x so set a timeout and have wget try the other DNS addresses instead
49
+ wget --timeout=5 -O "crane$ext" "https://doi-janky.infosiftr.net/job/wip/job/crane/lastSuccessfulBuild/artifact/crane-$BASHBREW_ARCH$ext" --progress=dot:giga
49
50
# TODO checksum verification ("checksums.txt")
50
51
chmod +x "crane$ext"
51
52
"./crane$ext" version
Original file line number Diff line number Diff line change 39
39
pastFailedJobsJson = sh (returnStdout : true , script : ' ' ' #!/usr/bin/env bash
40
40
set - Eeuo pipefail - x
41
41
42
- if ! json = "$(wget - qO - "$JOB_URL / lastSuccessfulBuild / artifact / pastFailedJobs .json ")"; then
42
+ if ! json = "$(wget -- timeout = 5 - qO - "$JOB_URL / lastSuccessfulBuild / artifact / pastFailedJobs .json ")"; then
43
43
echo > & 2 ' failed to get pastFailedJobs.json'
44
44
json = ' {}'
45
45
fi
You can’t perform that action at this time.
0 commit comments