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 GitHub
parent 0c9c27c6fd
commit c87e825d6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
unzip -q cache-artifact.zip
rm cache-artifact.zip
mv cache-artifact/* $CACHE_DIR/
mv cache-artifact/* $CACHE_DIR/ || true
else
echo "Failed to download cache"
fi