https://github.com/030/bcbsn
Send a build status to Bitbucket using the Bitbucket Cloud Build Status Notifier (BCBSN).
https://github.com/030/bcbsn
bitbucket-cloud buildstatus ci cli devops-tools docker go golang jenkins
Last synced: 10 months ago
JSON representation
Send a build status to Bitbucket using the Bitbucket Cloud Build Status Notifier (BCBSN).
- Host: GitHub
- URL: https://github.com/030/bcbsn
- Owner: 030
- License: mit
- Created: 2019-03-12T13:54:02.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2023-01-03T19:53:51.000Z (almost 3 years ago)
- Last Synced: 2025-02-28T06:32:11.588Z (10 months ago)
- Topics: bitbucket-cloud, buildstatus, ci, cli, devops-tools, docker, go, golang, jenkins
- Language: Go
- Homepage:
- Size: 19.4 MB
- Stars: 10
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bcbsn
[](https://github.com/030/bcbsn/actions?query=workflow%3AGo)
[![GoDoc Widget]][godoc]

[](https://goreportcard.com/report/github.com/030/bcbsn)
[](https://stackoverflow.com/tags/bcbsn)
[](https://devops.stackexchange.com/tags/bcbsn)
[](https://serverfault.com/tags/bcbsn)
[](https://hub.docker.com/r/utrecht/bcbsn)













[](https://github.com/030/bcbsn/releases/latest)
[](https://sonarcloud.io/dashboard?id=030_bcbsn)
[](https://sonarcloud.io/dashboard?id=030_bcbsn)
[](https://sonarcloud.io/dashboard?id=030_bcbsn)
[](https://sonarcloud.io/dashboard?id=030_bcbsn)
[](https://sonarcloud.io/dashboard?id=030_bcbsn)
[](https://sonarcloud.io/dashboard?id=030_bcbsn)
[](https://sonarcloud.io/dashboard?id=030_bcbsn)
[](https://sonarcloud.io/dashboard?id=030_bcbsn)
[](https://sonarcloud.io/dashboard?id=030_bcbsn)
[](https://sonarcloud.io/dashboard?id=030_bcbsn)
[](https://sonarcloud.io/dashboard?id=030_bcbsn)
[](https://codecov.io/gh/030/bcbsn)
[](https://golangci.com/r/github.com/030/bcbsn)
[](https://chocolatey.org/packages/bcbsn)
[](https://snapcraft.io/bcbsn)
[](https://codebeat.co/projects/github-com-030-bcbsn-main)
[](https://conventionalcommits.org)
[](https://github.com/semantic-release/semantic-release)
[godoc]: https://godoc.org/github.com/030/bcbsn
[godoc widget]: https://godoc.org/github.com/030/bcbsn?status.svg
The Bitbucket Cloud Build Status Notifier (BCBSN) is a tool that sends a build
status to bitbucket cloud. Oauth credentials are required to perform this
action and these have to be created in the user settings menu that resides in
bitbucket cloud. Note: a Callback URL, e.g. is
required in order to create Oauth credentials and one has to check 'private
consumer' if the build status has to be sent to private repositories.
In order to run this tool, one could choose to download the binary from the
releases section in this repository or use docker.
Example for running this command given:
- **client id**: 1234
- **client secret**: 4567
- **build state**: INPROGRESS
- **git commit hash**: f76d123498a053c1789057a41d6c3fcvg8b49cd7
- **owner**: 030
- **repository name**: bcbsn
- **build number**: 70
- **build url**:
[](https://hub.docker.com/r/utrecht/bcbsn)
To print the help message
```bash
docker run utrecht/bcbsn:2.0.7 -h
```
returns:
```bash
Usage of /usr/local/bcbsn:
-clientID string
The clientID used for the 'client credentials' token flow with BitBucket
-clientSecret string
The clientSecret used for the 'client credentials' token flow with BitBucket
-commit string
The commit, e.g. 57484fd5460017aef111e8b4ec116a30ff0b4904
-key string
The key, e.g. a unique id of the build (use the build id)
-name string
An identifier for the build e.g. 'build 2'
-owner string
The owner of the repository, e.g. it is 'atlassian' in 'https://bitbucket.org/atlassian/stash-example-plugin/src/master/'
-repoSlug string
The repoSlug, e.g. some-repository
-state string
The state, e.g. SUCCESSFUL, INPROGRESS or FAILED
-url string
The url, e.g. https://travis-ci.org/030/bcbsn/builds/523263434
```
[godoc]: https://godoc.org/github.com/030/bcbsn
[godoc widget]: https://godoc.org/github.com/030/bcbsn?status.svg