Get Commit Statuses
get_commit_statusesRetrieve build and CI statuses for a specific commit, including Jenkins results, without requiring a pull request.
Instructions
Get build/CI statuses for a specific commit (e.g. Jenkins, CI/CD).
Use this to check the Jenkins build status for any branch commit without needing to create a Pull Request first.
Args: repo_slug: Repository slug commit_hash: Commit hash (full or short, e.g. "abc1234") workspace: Workspace name (optional, defaults to configured workspace) page_size: Items per page (default: 10, max recommended: 100) max_pages: Maximum pages to fetch (default: 1, max recommended: 10)
Returns: List of build statuses (Jenkins, CI/CD, tests, etc.) Each status contains: - state: SUCCESSFUL, FAILED, INPROGRESS, STOPPED - key: Unique identifier for the build - name: Build name/description - description: Build result description - url: Link to the Jenkins build details - created_on: Timestamp of the status - updated_on: Timestamp of last update
Note: Requires Jenkins Bitbucket Build Status Notifier plugin to post statuses. Fetching more than 10 pages or 300 items will trigger a warning.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_pages | No | ||
| page_size | No | ||
| repo_slug | Yes | ||
| workspace | No | ||
| commit_hash | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |