【发布时间】:2019-06-11 13:56:38
【问题描述】:
当测试失败时,我遇到了 GitLab 不上传由 codeception 生成的工件的问题。它只上传_output 文件夹中的.gitignore。
这是我.gitlab-ci.yml的相关部分:
- ./src/Vendor/codeception/codeception/codecept run acceptance || true
- ls -a tests/_output
artifacts:
paths:
- "tests/_output"
expire_in: 20 days
when: always
有趣的是,我甚至可以在工作完成之前浏览工件(在这种情况下只有 .gitignore 文件)。我的跑步者的日志证明,工件确实存在于目录tests/_output(短)中:
$ ls -a tests/_output
.
..
.gitignore
commentsCest.answerCommentTest.fail.html
commentsCest.answerCommentTest.fail.png
commentsCest.normalCommentTest.fail.html
commentsCest.normalCommentTest.fail.png
failed
Uploading artifacts...
tests/_output: found 2 matching files
Uploading artifacts to coordinator... ok id=123456789 responseStatus=201 Created token=abcdefghij
Job succeeded
我做错了什么?
【问题讨论】: