我应该如何设置我的.gitlab-ci.yml清单来运行builds ONLY:
我已经尝试过用这样的设置来解决:
job:
only:
- triggers
- /merge-requests/
- master
except:
- branches关于这里的文档:https://docs.gitlab.com/ce/ci/yaml/README.html#only-and-except-simplified
突然在我的MR页面上发生了错误:
无法连接到CI服务器。请检查您的设置,然后重试。
当我从清单中删除only/except限制时,错误就消失了。
我在这里做错什么了?
我的Gitlab 版本是:GitLab Community Edition 10.8.1
发布于 2018-05-25 09:53:45
您希望只在以下情况下运行作业:
A job executed only on new pushed branch:
image: alpine:latest
script:
- # <-- add here the script that call Gitlab API
only:
- branchesA job executed only on master:
image: alpine:latest
script:
- echo "Hello world!"
only:
- masterhttps://stackoverflow.com/questions/50525075
复制相似问题