'Can I execute a pipeline from other pipeline in bitbucket pipelines?
I has the two repositories in bitbucket pipelines, both with pipelines enable.
How to execute the pipeline after the other pipeline complete?
Solution 1:[1]
As a final step of your almost completed pipeline, you could just trigger the other one by using BitBucket REST API.
Solution 2:[2]
Just confirming that the above answers work, but we found out (after a lot of trial and error) that the user executing the pipeline must have WRITE permissions on the repo where the pipeline is invoked (even though his app password permissions were set to "WRITE").
Also, this works for executing pipelines in Bitbucket's cloud or on-premise, through local runners.
(Answering as I am lacking reputation for commenting)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Recoba20 |
| Solution 2 | jvleminc |
