My gitlab CI is as follows:
stages:
- test
cache:
key: ${CI_COMMIT_SHA}
paths:
- mymark
test:
stage: test
script:
- ls -l
- echo "hi" > mymark
- ls -l
tags:
- myrunner
only:
- dev
The file mymark
is created by the build scripts:
$ ls -l
total 76
-rw-r--r-- 1 root root 3 Mar 15 10:48 mymark
But GitLab does not see it:
Creating cache 122f151d6b0a9d37cfa2172941d642e5c48287fc...
WARNING: mymark: no matching files
Created cache
Job succeeded
This seems to happen randomly: sometimes the file is found, sometimes not:
Creating cache 63d295dad175370aa61d13c4d2f3149e050df5e0...
mymark: found 1 matching files
Created cache
Job succeeded