The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can a parent pipeline access the output-variables from a child pipeline

dparr
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 3, 2026

Is it possible for a parent pipeline run, that spawns a child pipeline, to access the `output-variable` from the child pipeline?

e.g. Running something like this, where the parent pipeline echos the value of $ec2Status in the child?:
```

image: atlassian/default-image:3

steps:
dummy-retrain:
- step: &dummy-retrain
name: Dummy retrain
script:
- echo "retrainOut = daves_value" >> $BITBUCKET_PIPELINES_VARIABLES_PATH
output-variables:
- retrainOut
dummy-register:
- step: &dummy-register
name: Dummy register
condition:
state: (retrainOut == "daves_value" || retrainOut == "bitbuckets_value" || retrainOut == "users_value")
script:
- echo $retrainOut
dummy-ec2-up:
- step: &dummy-ec2-up
name: Dummy EC2 up
script:
- echo "Starting EC2 instance..."
- echo "ec2Status=running" >> $BITBUCKET_PIPELINES_VARIABLES_PATH
output-variables:
- ec2Status
dummy-ec2-down:
- step: &dummy-ec2-down
name: Dummy EC2 down
script:
- echo "Stopping EC2 instance..."
- echo "ec2Status=stopped" >> $BITBUCKET_PIPELINES_VARIABLES_PATH
output-variables:
- ec2Status
dummy-ec2-status-report:
- step: &dummy-ec2-status-report
name: Dummy EC2 status report
script:
- echo $ec2Status

pipelines:
custom:
ec2-retrain-workflow:
- step: *dummy-ec2-up
- step: *dummy-retrain
- step: *dummy-ec2-down
default:
- step:
name: "Run EC2 retrain workflow"
type: pipeline
custom: ec2-retrain-workflow
- step: *dummy-ec2-status-report
- step: *dummy-register
```

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Aron Gombas _Midori_
Community Champion
February 4, 2026

I think it is not supported officially.

In a somewhat similar situation, we use Bitbucket artifacts as a "transport method" to pass info. Meaning that the child can write the info to a file and upload it as a standard artifact. Then, the parent can then use the Bitbucket API (or a pipe like atlassian/bitbucket-download-file) to fetch that artifact from the specific build ID of the child.

Not very elegant, but works.

TAGS
AUG Leaders

Atlassian Community Events