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

ralph Hovens December 8, 2020

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
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 8, 2020

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,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events