Create
cancel
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

I'm using atlassian/trigger-pipeline - can I request WAIT but not fail the entire build on failure?

I have a master pipeline with many (33?) build steps that each invoke atlassian/trigger-pipeline. I want the results of each sub-build to be reported in this build, so I use the "WAIT=true' option.

I would like all 33 to run even though one or more of the sub-builds fail. Can I do that?

Here's an example of one of the 33 sub-build steps:

- step:
script:
- pipe: atlassian/trigger-pipeline:4.2.1
variables: &base
BITBUCKET_USERNAME: "${FOO_PIPELINE_USER}"
BITBUCKET_APP_PASSWORD: "${FOO_PIPELINE_PASS}"
BRANCH_NAME: "$BITBUCKET_BRANCH"
WAIT: "true"
DEBUG: "false"
REPOSITORY: "foo-shared"

 

1 answer

1 accepted

2 votes
Answer accepted

Hi @marklaff ,

Thank you for your question!

It's a good case for Set up or run parallel steps :

pipelines:
default:
parallel:
- step:
script:
- pipe: atlassian/trigger-pipeline:4.2.1
variables:
BITBUCKET_USERNAME: "${FOO_PIPELINE_USER}"
BITBUCKET_APP_PASSWORD: "${FOO_PIPELINE_PASS}"
BRANCH_NAME: "$BITBUCKET_BRANCH"
WAIT: "true"
DEBUG: "false"
REPOSITORY: "foo-shared-1"
- step:
script:
- pipe: atlassian/trigger-pipeline:4.2.1
variables:
BITBUCKET_USERNAME: "${FOO_PIPELINE_USER}"
BITBUCKET_APP_PASSWORD: "${FOO_PIPELINE_PASS}"
BRANCH_NAME: "$BITBUCKET_BRANCH"
WAIT: "true"
DEBUG: "false"
REPOSITORY: "foo-shared-2"

 

Cheers,
Oleksandr Kyrdan

Hi @Oleksandr Kyrdan , thanks for your quick answer. That makes sense - I will try that.

Like Oleksandr Kyrdan likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

83 views 1 6
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