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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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

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

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