Tolerate parent cache with empty cache-artifact directory (#3240)
This commit is contained in:
parent
0c9c27c6fd
commit
416d85b294
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user