Configure runner to run multiple jobs at the same time

前端 未结 1 1503
天涯浪人
天涯浪人 2021-02-07 11:42

When having one gitlab runner serving multiple projects, it can only run one CI pipeline while the other project pipelines have to queue.

Is it possible to make a gitlab

1条回答
  •  孤独总比滥情好
    2021-02-07 12:29

    I believe the configuration options you are looking for is concurrent and limit, which you'd change in the GitLab Runners config.toml file.

    From the documentation:

    • concurrent: limits how many jobs globally can be run concurrently. The most upper limit of jobs using all defined runners. 0 does not mean unlimited

    • limit: limit how many jobs can be handled concurrently by this token.

    The location for the config.toml file:

    • /etc/gitlab-runner/config.toml on *nix systems when GitLab Runner is executed as root (this is also path for service configuration)
    • ~/.gitlab-runner/config.toml on *nix systems when GitLab Runner is executed as non-root
    • ./config.toml on other systems

    Useful issue as well.

    0 讨论(0)
提交回复
热议问题