为同一项目和不同分支并行运行作业

时间:2019-12-15 22:30:59

标签: gitlab-ci gitlab-ci-runner

为了并行运行这些作业,我需要更改什么? 服务器上还有一个可用的运行器,但是直到“正在运行”的任务完成后,它才开始处理“待处理”的任务。

enter image description here

更新

作业由不同的跑步者接管,但顺序执行。请参阅ci-runner-1和ci-runner-2。 查看屏幕截图

enter image description here enter image description here

1 个答案:

答案 0 :(得分:0)

问题是在config.toml中(我的情况是/etc/gitlab-runner/config.toml),我有: 并发= 1。 将其更改为0或值> 1,然后重新启动gitlab-runner并一切正常。

参考: https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-global-section

相关问题