You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
So I have a project with multiple repositories. Each time I make a merge in one of those repos a bitbucket pipeline is triggered. This pipeline builds a docker image and then triggers a central pipeline in a separate repo. This central pipeline deploys my application to a server. Because of the multiple repos sometimes I make multiple merges, resulting in multiple pipelines beeing triggered in the central repo. Bitbucket in this case pauses all the pipelines and runs only the first one. Problem is I have to rerun the rest of the pipelines. Can I do that automatically?
If I can't can I check if a pipeline is already running before triggering another one?
Hi Spyros and welcome to the community.
I'm afraid that it is not possible to automatically resume paused deployments at the moment.
We have a feature request about this in our issue tracker:
Since you're interested in this feature, I would suggest adding your vote to that feature request (by selecting the Vote for this issue link) as the number of votes helps the development team and product managers better understand the demand for new features.
You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the Start watching this issue link) if you'd like to get notified via email on updates.
Implementation of new features is done as per our policy here and any updates will be posted in the feature request.
It is possible to check if pipelines builds are running in a certain repo with our API, with a call like the following:
This endpoint is documented in the link below and I am using filters for the statuses:
Another workaround would be to create a script where you get all paused pipelines in the repo with a call like the following:
The output will show you the UUID for each paused pipeline.
You can then use an API call like the following to get the UUID of the step of each pipeline:
And then use the following internal API endpoint to start a paused step with method POST:
Please note that this last endpoint is an internal one and as such, it is subject to change. So, even if you decide to use it, for now, I would suggest watching the feature request I shared for updates in an official solution for this.