bitbucket_get_commit_builds
Retrieve CI/CD build statuses for a specific commit, including state, key, and URL, to verify pipeline success before merging or pinpoint failed builds.
Instructions
Get all CI/CD build statuses for a specific commit.
Returns the full list of pipeline/build results associated with the commit, including the build state (SUCCESSFUL, FAILED, INPROGRESS), build key, name, description, and the URL to the build in the CI system (e.g. Jenkins, Bamboo).
Use this to check whether all required pipelines passed before merging a PR or to identify which specific build failed. If limit is not specified, all builds are returned.
Args: workspace: Workspace name or project key. repository: Repository name. commit_id: Full commit hash to look up builds for. limit: Maximum number of builds to return. If not specified, returns all builds.
Returns: JSON string containing the list of builds with their status and details.
Raises: ValueError: If the Bitbucket client is not configured or available.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of builds to return. Omit or set to null to return all builds. | |
| commit_id | Yes | Full commit hash (e.g., 'b602bc8ce4201b91808bd9e12ba6f9ed0ffdd64c') | |
| workspace | Yes | Workspace name (Cloud) or project key (Server/DC) | |
| repository | Yes | Repository name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |