The `bitbucket-build-status` package provides a command-line interface (CLI) tool, `bbuild`, for programmatically posting build statuses to Bitbucket Cloud and Bitbucket Server. Its primary function is to update the build status for a specific commit in a Bitbucket repository, indicating states like INPROGRESS, SUCCESSFUL, or FAILED. The current stable version is 1.2.0, last published in February 2020, indicating a stalled release cadence with no recent updates. Key differentiators include its simplicity as a standalone CLI tool and explicit support for both Bitbucket.org and self-hosted Bitbucket Server instances via a base URL option. It facilitates integration into CI/CD pipelines where direct API interaction for build status updates is needed without relying on a full-featured Bitbucket API client library.
npm install bitbucket-build-statusVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to use the `bbuild` command to post build statuses for both Bitbucket Server and Bitbucket Cloud.
For Bitbucket Server >= 7.14, verify if the tool's API calls are compatible with the current API (e.g., using projectKey and repositorySlug in the URL). Consider migrating to a more actively maintained Bitbucket API client library if issues persist.
Generate a Bitbucket App Password (via Personal settings -> App passwords) with sufficient 'Account: Write' and 'Repositories: Write' permissions, and use this as the `--password` value.
Always explicitly set `--server` with the base URL of your Bitbucket Server instance for self-hosted deployments. For Bitbucket Cloud, ensure it is omitted or set correctly if your project is not on bitbucket.org.
Ensure the `--state` argument uses one of the exact specified values. Truncate `url`, `key`, `name`, and `description` values if they exceed their respective character limits.
Verify username and ensure an App Password (with 'Account: Write' and 'Repositories: Write' permissions) is used for Bitbucket Cloud. For Bitbucket Server, ensure the user account has `LICENSED` permission or higher.
Double-check the `--commit`, `--repo`, and `--owner` values. If targeting Bitbucket Server, confirm API compatibility and consider the API changes in newer Bitbucket Server versions as a potential cause.
Consult `bbuild --help` and ensure all mandatory options are present. These typically include `--commit`, `--repo`, `--state`, `--key`, `--name`, `--url`, `--username`, and `--password`.
No dependency data recorded yet.