Skip to content

Commit 026cfe5

Browse files
committed
Move final cache stuff into after_script
1 parent b2bd8db commit 026cfe5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,13 @@ stages:
9393
- ./ci/build_src.sh
9494
- ./ci/test_unittests.sh
9595
- ./ci/test_integrationtests.sh
96+
97+
after_script:
9698
# Copy all cache files into cache-artifact so that they get uploaded. We only do this for develop so that artifacts
9799
# stay minimal for PRs and branches (we never need them)
100+
- mkdir $CI_PROJECT_DIR/cache-artifact
101+
- mkdir -p $CI_PROJECT_DIR/testlogs
98102
- |
99-
mkdir $CI_PROJECT_DIR/cache-artifact
100-
mkdir -p $CI_PROJECT_DIR/testlogs
101103
if [ "$CI_COMMIT_REF_SLUG" = "develop" ]; then
102104
cp -ra $CACHE_DIR/* $CI_PROJECT_DIR/cache-artifact/
103105
else

0 commit comments

Comments
 (0)