【发布时间】:2020-06-03 08:35:40
【问题描述】:
这是我的.gitlab-ci.yml 文件:
script1:
only:
refs:
- merge_requests
- master
changes:
- script1/**/*
script: echo 'script1 done'
script2:
only:
refs:
- merge_requests
- master
changes:
- script2/**/*
script: echo 'script2 done'
我希望script1 在script1 目录发生变化时运行;同样script2。
我在script1 的更改、script2 的更改、两个目录的更改以及这两个目录中的任何一个都没有更改的情况下测试了这些。
前 3 个案例按预期通过,但第 4 个案例,即任一目录均未更改的案例失败。
在概述中,Gitlab 给出了消息
Could not retrieve the pipeline status. For troubleshooting steps, read thedocumentation.
在Pipelines 选项卡中,我可以选择Run pipeline。点击它会出现错误
An error occurred while trying to run a new pipeline for this Merge Request.
如果没有工作,我希望管道成功。
【问题讨论】: