{"id":22535321,"url":"https://github.com/danielwhatmuff/bitbucket-build-reporter","last_synced_at":"2026-05-18T03:35:33.293Z","repository":{"id":84757843,"uuid":"133061139","full_name":"danielwhatmuff/bitbucket-build-reporter","owner":"danielwhatmuff","description":"Report build state to Bitbucket Cloud from CI jobs","archived":false,"fork":false,"pushed_at":"2018-05-29T09:41:28.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-11T18:36:42.912Z","etag":null,"topics":["bitbucket","bitbucket-cloud","build","build-status","cd","ci","jenkins","jenkins-pipeline","reporter"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielwhatmuff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-05-11T16:07:15.000Z","updated_at":"2018-05-29T09:41:30.000Z","dependencies_parsed_at":"2023-03-06T21:00:24.596Z","dependency_job_id":null,"html_url":"https://github.com/danielwhatmuff/bitbucket-build-reporter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/danielwhatmuff/bitbucket-build-reporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwhatmuff%2Fbitbucket-build-reporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwhatmuff%2Fbitbucket-build-reporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwhatmuff%2Fbitbucket-build-reporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwhatmuff%2Fbitbucket-build-reporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielwhatmuff","download_url":"https://codeload.github.com/danielwhatmuff/bitbucket-build-reporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwhatmuff%2Fbitbucket-build-reporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33163779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitbucket","bitbucket-cloud","build","build-status","cd","ci","jenkins","jenkins-pipeline","reporter"],"created_at":"2024-12-07T10:07:06.560Z","updated_at":"2026-05-18T03:35:33.288Z","avatar_url":"https://github.com/danielwhatmuff.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bitbucket Cloud Build Status Reporter\n\n## Update the Bitbucket build statuses for commits from your CI jobs.\n![](https://raw.githubusercontent.com/danielwhatmuff/bitbucket-build-reporter/master/img/img-1.png)\n![](https://raw.githubusercontent.com/danielwhatmuff/bitbucket-build-reporter/master/img/img-2.png)\n![](https://raw.githubusercontent.com/danielwhatmuff/bitbucket-build-reporter/master/img/img-3.png)\n\n### Benefits\n* Block pull requests from being merged if there is a failed build\n* Link to the relevant build logs from within Bitbucket UI\n\n### Notes\n* Commit will be determined from the current directory if not supplied on command line\n* URL and build number will default to jenkins environment variables if not supplied on command line\n* Requires username and password with `repository` scope permission to access the required [API method](https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses/build)\n\n### Usage example\n* If you use Travis CI (.org)\n```yaml\n...\nbefore_script:\n  - bb-report -c $TRAVIS_COMMIT -U \"https://travis-ci.org/$TRAVIS_REPO_SLUG/builds/$TRAVIS_BUILD_ID\" -n $TRAVIS_BUILD_NUMBER -s INPROGRESS -r \u003cyourrepo\u003e -u $BITBUCKET_USERNAME -p $BITBUCKET_PASSWORD -o \u003cbitbucket org\u003e\nscript:\n  - python your-tests.py\nafter_failure:\n  - bb-report -c $TRAVIS_COMMIT -U \"https://travis-ci.org/$TRAVIS_REPO_SLUG/builds/$TRAVIS_BUILD_ID\" -n $TRAVIS_BUILD_NUMBER -s FAILED -r \u003cyourrepo\u003e -u $BITBUCKET_USERNAME -p $BITBUCKET_PASSWORD -o \u003cbitbucket org\u003e\nafter_success:\n  - bb-report -c $TRAVIS_COMMIT -U \"https://travis-ci.org/$TRAVIS_REPO_SLUG/builds/$TRAVIS_BUILD_ID\" -n $TRAVIS_BUILD_NUMBER -s SUCCESSFUL -r \u003cyourrepo\u003e -u $BITBUCKET_USERNAME -p $BITBUCKET_PASSWORD -o \u003cbitbucket org\u003e\n...\n```\n\n### Reference\n```\nusage: bb-report [-h] -o ORG -r REPO [-c COMMIT] [-U URL] [-n NUMBER] -s\n                 {INPROGRESS,SUCCESSFUL,FAILED} -u USERNAME -p PASSWORD [-d]\n\nBitbucket Cloud Build Status Notifier\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -o ORG, --org ORG     Bitbucket org\n  -r REPO, --repo REPO  Repository name\n  -c COMMIT, --commit COMMIT\n                        Commit sha\n  -U URL, --url URL     Build URL\n  -n NUMBER, --number NUMBER\n                        CI build number\n  -s {INPROGRESS,SUCCESSFUL,FAILED}, --state {INPROGRESS,SUCCESSFUL,FAILED}\n                        State of the build\n  -u USERNAME, --username USERNAME\n                        Username for bitbucket\n  -p PASSWORD, --password PASSWORD\n                        Password for bitbucket\n  -d, --debug           Debug mode\n```\n\n### Sanity test it against your Bitbucket account locally\n```\n$ pip install bitbucket-build-reporter\n$ cd your-repo/ # Required for determining a valid commit sha\n$ bb-report -U 'https://your-ci.com' -n 123 -s INPROGRESS -r \u003cyourrepo\u003e -u \u003cbitbucket username\u003e -p \u003cbitbucket password\u003e -o \u003cbitbucket org\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielwhatmuff%2Fbitbucket-build-reporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielwhatmuff%2Fbitbucket-build-reporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielwhatmuff%2Fbitbucket-build-reporter/lists"}