New dynamic step condition in Bitbucket Pipelines
Bitbucket Pipelines steps can now use a state condition, a boolean expression over context variables, to decide whether the step runs. It is rolling out to Atlassian Cloud sites now.
- Rolling out
- Medium impact
- Admin review: api change
What it is
Improvement
You can add a state attribute to a step's condition. It holds a boolean expression that can reference pipeline variables, and the step runs only if the expression is true. Both state and changesets conditions are now checked right before each step starts.
Developers writing pipeline configuration can use the state attribute to make step execution depend on pipeline variables.
Add a state attribute under a step's condition in your pipeline configuration. The condition and variable values are printed in the Build Setup log.
Written from Atlassian's release note and checked against it automatically. Atlassian's original stays the source of truth.
What changed
- First published by Atlassian
Atlas Bench began tracking Atlassian Cloud on 29 Oct 2026. Changes before that date are not in this history.