Forums

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

how to read the contents of an artifact file within bitbucket-pipelines.yml ?

Darrell Hendriksen
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!
November 2, 2022

I want to get the output value from one step to use as an input on a subsequent step.

I am able to successfully get data/values into an artifact.  I tested that by running the build, then manually downloading the artifact, and seeing my data was indeed in the artifact.

I cannot find anywhere which shows how the syntax for reading the contents of an artifact and using the contents in a subsequent step.

step "richard" works fine.  step "jonathan" doesn't work- note that I'm only using echo in step "jonathan" to see if i've been able to read the contents of  results.txt.

I've searched the forums for hours.  I see over and over mentions of using an artifact in subsequent steps, but can find no syntax/demo of code that actually does that.

bitbucket-pipelines.yml.PNG

 

1 answer

1 accepted

0 votes
Answer accepted
Darrell Hendriksen
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!
November 3, 2022

Finally figured out how to do what I needed:

solution.PNG

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events