Easily share data between steps in Bitbucket Pipelines
Apr 1, 2025Edmund Munday

Summary
Introduces a new feature in Bitbucket Pipelines that allows environment variables to be defined in one step and accessed in subsequent steps within the same pipeline. This is achieved by writing variables to a specified path (`$BITBUCKET_PIPELINES_VARIABLES_PATH`) and declaring them in the `output-variables` section of the YAML. The post details considerations for variable naming (last write wins), security (not for secrets), limits (50 variables, 100kb total), parallel steps, and scope (pipeline lifetime).