зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1266719 - Add retry and timeout options when downloading image context r=wcosta
MozReview-Commit-ID: BTpHZa4PX0G --HG-- extra : rebase_source : 4e8487755acf37a4eef8192061abf00262d2407b
This commit is contained in:
Родитель
b6d43d1c3f
Коммит
6af4f44564
|
@ -1 +1 @@
|
|||
0.1.3
|
||||
0.1.4
|
||||
|
|
|
@ -9,7 +9,7 @@ set -x -e -v
|
|||
# Prefix errors with taskcluster error prefix so that they are parsed by Treeherder
|
||||
raise_error() {
|
||||
echo
|
||||
echo "[taskcluster:error] Error: $1"
|
||||
echo "[taskcluster-image-build:error] $1"
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
@ -21,7 +21,9 @@ mkdir /artifacts
|
|||
|
||||
if [ ! -z "$CONTEXT_URL" ]; then
|
||||
mkdir /context
|
||||
curl -L "$CONTEXT_URL" | tar -xz --strip-components 1 -C /context
|
||||
if ! curl -L --retry 5 --connect-timeout 30 "$CONTEXT_URL" | tar -xz --strip-components 1 -C /context; then
|
||||
raise_error "Error downloading image context from decision task."
|
||||
fi
|
||||
CONTEXT_PATH=/context
|
||||
else
|
||||
tc-vcs checkout /home/worker/workspace/src $BASE_REPOSITORY $HEAD_REPOSITORY $HEAD_REV $HEAD_REF
|
||||
|
|
Загрузка…
Ссылка в новой задаче