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?