我有以下Gitlab CI公司:
[...]
.e2e-config-template: &e2e-config-template
stage: e2e-test
needs: ['setup-project']
interruptible: true
image: xxx/xxx/...
allow_failure: false
tags:
- private
rules:
- if: "$CI_MERGE_REQUEST_IID != null && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'master'"
when: always
- when: manual
e2e 1/4:
<<: *e2e-config-template
script:
- yarn install --check-files
- echo "127.0.0.1 abc.def.gh" >> /etc/hosts
- apt install lsof
- yarn test:e2e --shard=1/4
e2e 2/4:
<<: *e2e-config-template
script:
- yarn install --check-files
- echo "127.0.0.1 abc.def.gh" >> /etc/hosts
- apt install lsof
- yarn test:e2e --shard=2/4
[...]当CI运行时,我的结果是:

问题是我很懒,每次我想要触发E2E测试时都必须点击4 "Play“按钮(情况并不总是如此)。
我希望有一个“父”阶段,允许只需一次单击就可以触发所有4个E2E作业。
这个是可能的吗?
发布于 2022-07-20 08:53:50
https://stackoverflow.com/questions/73048085
复制相似问题