Tolerate parent cache with empty cache-artifact directory (#3240)

This commit is contained in:
Alexander Block 2019-12-13 18:40:11 +01:00 committed by UdjinM6
parent 0c9c27c6fd
commit 416d85b294

View File

@ -38,7 +38,7 @@ stages:
if wget --quiet -O cache-artifact.zip https://gitlab.com/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/-/jobs/artifacts/develop/download?job=$CI_JOB_NAME; then if wget --quiet -O cache-artifact.zip https://gitlab.com/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/-/jobs/artifacts/develop/download?job=$CI_JOB_NAME; then
unzip -q cache-artifact.zip unzip -q cache-artifact.zip
rm cache-artifact.zip rm cache-artifact.zip
mv cache-artifact/* $CACHE_DIR/ mv cache-artifact/* $CACHE_DIR/ || true
else else
echo "Failed to download cache" echo "Failed to download cache"
fi fi