Introducing Dynamic Step Condition for Bitbucket Pipelines
Nov 25, 2025Edmund Munday

Summary
Introduces a new `state` condition type for Bitbucket Pipelines steps, allowing dynamic skipping of steps based on boolean expressions evaluated using pipeline context variables. This enables more intelligent and flexible CI/CD workflows by leveraging workspace, repository, deployment, and output variables. The post details how to use this feature with examples for blocking deployments during incidents and skipping deployments with critical vulnerabilities, and also explains how to combine `state` conditions with existing `changesets` conditions. It outlines supported expression syntax, variable types, and troubleshooting mechanisms.