Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

marklaff March 9, 2021

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
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 9, 2021

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

marklaff March 9, 2021

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

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events