I am new to GitLab and facing a problem where if I trigger two pipelines at the same time on same gitlab-runner, they both run in parallel and results in failure. What I want is to limit the run to one pipeline at a time and others in queue.
I have set the concurrent = 1
in config.toml and restarted the runner but it didn't help. My ultimate goal is to prevent multi-pipeline run on the runner.
Thanks.
Set resource_group
in the Job, and give a unique name for all other tasks that should be blocked.
Example from the documentation:
deploy-to-production:
script: deploy
resource_group: production
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With