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 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...

111 views 2 4
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