Welcome to the Bitbucket Blitz video series. The series features a library of short-form videos that, together, capture the end-to-end flow developers use to get sh&t done with our Software Collection. There is a specific focus on Bitbucket and Bitbucket Pipelines features.
A better developer experience is a few steps away.
As a follow-up to the previous post about splitting your bitbucket-pipelines.yml into multiple, smaller files and using shared pipeline syntax to tie them together, this video shows how you can share artifacts between parent and child pipelines.
Without artifact sharing, every child pipeline has to repeat expensive steps like downloading dependencies and building application code from scratch. That's wasted compute and wasted developer time that doesn't benefit your customers.
Bitbucket Pipelines now lets you specify an artifacts section on child pipelines, with upload and download keywords:
Artifacts listed under upload are moved from the parent pipeline into the child pipeline where they can be used, and potentially modified.
Artifacts listed under download are moved from the child pipeline back up to the calling parent pipeline where they can be used and potentially passed to other child pipelines.
A parent pipeline can download artifacts from a build child pipeline and then upload them to a testing child pipeline. Build once, share everywhere. No redundant steps.
In this Bitbucket Blitz video, I walk through how to set up artifact sharing between parent and child pipelines so you can keep your pipelines modular, fast, and easier to maintain across repositories.
Resources to get you going
You can check out the entire Bitbucket Blitz video series here: Bitbucket Blitz
About the author
Warren is a former developer turned technical evangelist who joined Atlassian in 2021. He has worked on everything from COBOL telecoms software running on mainframes to modern cloud infrastructure at AWS. He has a passion for technology and a research background in machine learning. As a technical evangelist, Warren builds awareness of the capabilities of Atlassian products through demos, writings, and videos. You can often find him at conferences like Team and re:Invent. Warren also curates the Developer's Edge video series (The Developer’s Edge).
Let me know if you have any questions in the comments!
Warren Marusiak
0 comments