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.
Bitbucket Pipelines lets you invoke child pipelines from a parent step, but until now, there was no way to pass information between them. If a parent step produced a result that a child pipeline needed to act on, you were stuck hard-coding values or working around it outside of Pipelines.
Variable sharing changes that. You can define variables in a parent step and pass them directly to child pipelines as custom pipeline variables. And with dynamic step conditions, those child pipelines can make decisions at runtime based on the values they receive:
Skip a deployment when a security scan detects critical vulnerabilities
Post a Slack notification when static analysis finds issues
Branch your pipeline logic based on information that only exists at runtime
No more hardcoding outcomes or building external decision logic. Your pipelines react to what actually happened in previous steps.
In this Bitbucket Blitz video, I walk through how to add variable sharing and dynamic step conditions to a Bitbucket Pipeline so your child pipelines can act on real results instead of static configuration.
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 (https://www.youtube.com/playlist?list=PLaD4FvsFdarTAhQOlVigaP9hrtSyu86vb).
Let me know if you have any questions in the comments!
Warren Marusiak
0 comments