【发布时间】:2018-03-15 11:10:20
【问题描述】:
我的gitlab CI如下:
stages:
- test
cache:
key: ${CI_COMMIT_SHA}
paths:
- mymark
test:
stage: test
script:
- ls -l
- echo "hi" > mymark
- ls -l
tags:
- myrunner
only:
- dev
文件mymark由构建脚本创建:
$ ls -l
total 76
-rw-r--r-- 1 root root 3 Mar 15 10:48 mymark
但是 GitLab 没有看到它:
Creating cache 122f151d6b0a9d37cfa2172941d642e5c48287fc...
WARNING: mymark: no matching files
Created cache
Job succeeded
这似乎是随机发生的:有时找到文件,有时找不到:
Creating cache 63d295dad175370aa61d13c4d2f3149e050df5e0...
mymark: found 1 matching files
Created cache
Job succeeded
【问题讨论】:
-
你找到解决这个问题的方法了吗?
标签: gitlab gitlab-ci gitlab-ci-runner