Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

When I trigger a pipeline from another pipeline and the first fails, I want all to fail


I've setup a pipeline A that triggers another pipeline B. If B succeeds and A succeed all is good. If B fails, but all the other steps of Pipeline A succeed, A succeeds as probably kicking of Pipeline B is seen as a succes. I would actually like to have the build fail at that point. How can I achieve this?

Actual results from Pipeline A:

✔ Build started successfully.

Build number: 29. Follow build logs at the following URL:

✔ Pipe finished successfully.

Actual results from Pipeline B:

#29 status failed


1 answer

0 votes

Hi @ralph Hovens  and welcome to the community!

You can use the following pipe for triggering another Pipelines build (perhaps you are using this already?):

If you check in the link above the available variables for this pipe, there is a flag called WAIT. If you set WAIT: 'true' for the pipe, the pipe will wait for the triggered pipeline to complete. If the triggered pipeline fails, the pipe (and therefore pipeline A) will also fail.

Is this something that works for you?

Kind regards,

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

218 views 2 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you