030 / bcbsn Goto Github PK
View Code? Open in Web Editor NEWSend a build status to Bitbucket using the Bitbucket Cloud Build Status Notifier (BCBSN).
License: MIT License
Send a build status to Bitbucket using the Bitbucket Cloud Build Status Notifier (BCBSN).
License: MIT License
When initially creating the build badge Bitbucket will return a 201 every subsequent change of the build status will return a 200. We will have to update the code to both accept a 200 and a 201.
As of go 1.11 we can use the built-in go modules instead of using dep for dependency management.
Hi when I try to run with the latest version I get the next error
$ docker run utrecht/golang-bitbucket-cloud-build-status-notifier:1.0.1 -keyString dg6DvhHhjT5gYQZCPE:MYPASSWORD -buildState SUCCESSFUL -gitCommit d5d24e56325d0ad938141ee1556cbce4a3d6f926 -owner owner -repositoryName MYCOMPANY-upgrade-service -buildNumber 13 -buildURL http://jenkins.MYCOMPANY.io:8080/job/archive_builds/job/upgrade-service/job/jenkinsfile-test/20/
2019/03/26 08:44:09 Post https://bitbucket.org/site/oauth2/access_token: x509: certificate signed by unknown authority
It seems that the different artifacts were all built on linux.
Currently we are missing a working snippet in how to use this plugin, this makes it hard for people to start using this plugin.
The actual parameters used by bcbsn are not up-to-date anymore i.e. -keyString
is replaced by -clientId
and -clientSecret
.
Currently we run the image as root, this is not necesary and we should create a nonprivileged user and use that instead.
See this blog for some inspiration.
Exit code should be non-0 if forbidden.
https://developer.atlassian.com/server/bitbucket/how-tos/updating-build-status-for-commits/
Updating build results
Bitbucket Server stores one build result for each key per commit, so you can update a previous build result by sending a request with:
the same commit hash; and
the same key attribute.
A couple of lines of JSON is returned when the bcbsn exits. This could be more concise and human friendly.
https://askubuntu.com/a/1157/561376
That depends, really. If the application has a makefile, or for example for python apps if the application uses distutils (e.g., has a setup.py file), or a similar build/install system, you should install it into /usr/local/. This is often the default behavior. From what I understand, /usr/local/ has a hierarchy that is similar to /usr/. However, directories like /usr/bin/ and /usr/lib/ are usually reserved for packages install via apt. So a program expecting to get "installed" into /usr/ should work fine in /usr/local/.
Execute the integration test by using a real token and let build fail if there are issues.
No callback uri defined for the OAuth client.
If -keyString
is omitted, then a panic: runtime error: index out of range
is returned. This error message could be improved, e.g. -keyString parameter seems to be omitted
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.