diff options
author | Daniel Stone <daniels@collabora.com> | 2021-12-03 07:07:47 +0000 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2021-12-03 16:11:42 +0000 |
commit | 76ffc72742c32d5e3f3e5bca9c562339e7bd737b (patch) | |
tree | ec7453e2cfe8c66362d326656668bc2af1193848 /.gitlab-ci.yml | |
parent | 11287475c8a7c49e4cec97dd50662a4fa9eb8996 (diff) |
CI: Don't stream wget directly into bash
If our environment has pipefail set, bash could exit early before wget
has completed, and we will die with a broken pipe. Work around this by
first downloading from wget, and then executing from bash.
Signed-off-by: Daniel Stone <daniels@collabora.com>
Acked-by: Michel Dänzer <mdaenzer@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14036>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index de51c2b6e13..6534fb118e9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,7 +3,9 @@ variables: MESA_TEMPLATES_COMMIT: &ci-templates-commit 290b79e0e78eab67a83766f4e9691be554fc4afd CI_PRE_CLONE_SCRIPT: |- set -o xtrace - /usr/bin/wget -q -O- ${CI_PROJECT_URL}/-/raw/${CI_COMMIT_SHA}/.gitlab-ci/download-git-cache.sh | bash - + wget -q -O download-git-cache.sh ${CI_PROJECT_URL}/-/raw/${CI_COMMIT_SHA}/.gitlab-ci/download-git-cache.sh + bash download-git-cache.sh + rm download-git-cache.sh set +o xtrace MINIO_HOST: minio-packet.freedesktop.org # per-pipeline artifact storage on MinIO |