Hi all,
Is there any way to automatically trigger/rerun a halted pipeline when the previous PR validation pipeline passes or fails, rather than running it manually?
Bitbucket Pipelines does not natively auto-resume halted pipelines when a concurrent slot opens up due to plan-level concurrency limits. However, these may work:
1. Use the max-concurrency keyword in your step definition. When configured at the step level, this causes steps to queue automatically and start when a slot becomes available, rather than being halted. In your bitbucket-pipelines.yml, you add max-concurrency: 1 (or your desired number) to the relevant step.
2. Use the Bitbucket REST API to programmatically trigger pipelines. You can add an after-script section in your pipeline steps that calls the Bitbucket API to check for and re-trigger halted pipelines when the current one finishes. The relevant endpoint is POST /2.0/repositories/{workspace}/{repo_slug}/pipelines/ to trigger a new run, or you can use PUT to rerun a halted one.
Thanks, @Aron Gombas _Midori_, I will try to do this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Deb Pramanik
Bitbucket Pipelines steps support concurrency groups, queuing steps using the same group first-in, first-out so only one runs at a time, with the next waiting step proceeding automatically upon completion of the previous one.
That's probably what you looking.
https://support.atlassian.com/bitbucket-cloud/docs/step-options/
Best,
Arek š¤
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Arkadiusz Wroblewski , I will try
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.