Coder Social home page Coder Social logo

030 / bcbsn Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 3.0 19.84 MB

Send a build status to Bitbucket using the Bitbucket Cloud Build Status Notifier (BCBSN).

License: MIT License

Go 88.23% Dockerfile 6.35% Ruby 0.29% Shell 5.14%
bitbucket-cloud buildstatus ci cli devops-tools docker go golang jenkins

bcbsn's Introduction

profile for 030 on Stack Exchange, a network of free, community-driven Q&A sites

bcbsn's People

Contributors

030 avatar github-actions[bot] avatar jorianvo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bcbsn's Issues

bcbsn should accept only the http status code 201

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.

access_token: x509: certificate signed by unknown authority

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

Add a working example snippet

Currently we are missing a working snippet in how to use this plugin, this makes it hard for people to start using this plugin.

Readme out-of-date

The actual parameters used by bcbsn are not up-to-date anymore i.e. -keyString is replaced by -clientId and -clientSecret.

Use a nonprivileged user

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.

artifact should not be stored in root dir

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/.

proper integration test

Execute the integration test by using a real token and let build fail if there are issues.

panic: runtime error: index out of range

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.