Skip to content

Commit b2bd8db

Browse files
committed
Make sure artifacts are never empty
1 parent 63c48f7 commit b2bd8db

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.gitlab-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,11 @@ stages:
9797
# stay minimal for PRs and branches (we never need them)
9898
- |
9999
mkdir $CI_PROJECT_DIR/cache-artifact
100+
mkdir -p $CI_PROJECT_DIR/testlogs
100101
if [ "$CI_COMMIT_REF_SLUG" = "develop" ]; then
101102
cp -ra $CACHE_DIR/* $CI_PROJECT_DIR/cache-artifact/
103+
else
104+
touch $CI_PROJECT_DIR/cache-artifact/.empty
102105
fi
103106
104107
# We're actually only interested in the develop branch creating the cache artifact, but there is no way to control this

0 commit comments

Comments
 (0)