List pipelines
list_pipelinesRetrieve Bitbucket Pipelines builds filtered by build number, commit, branch, or PR ID, including per-step pass/fail status and fallback to source branch pipelines when no PR-specific pipeline exists.
Instructions
Find Bitbucket Pipelines builds and their per-step pass/fail state. Scope it with build_number (exact build), commit (SHA, short or full), branch, or pr_id — with none of those it uses the PR for the current branch. PR lookups do not require the repo to have a pull-requests: trigger: when no pipeline is attributable to the PR, this falls back to the most recent pipelines on the PR's source branch and says so in match and note. match: "none" means no pipeline ran at all — distinct from a fallback. Steps include their UUIDs, so this is where you get the arguments for get_pipeline_step_log.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Bitbucket repo slug. | |
| limit | No | Maximum number of pipelines to return, newest first. Default 5. | |
| pr_id | No | Pull request id. | |
| branch | No | Branch name to list pipelines for. | |
| commit | No | Commit SHA (short or full) to find pipelines for. | |
| workspace | No | Bitbucket workspace (slug). | |
| build_number | No | Fetch one specific build by its build number (e.g. 27419). | |
| include_steps | No | Include each pipeline's steps. Default true; set false for a cheaper answer. |