idirouhab / bitbucket2insights

Bitbucket events to Insights events middleware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bitbucket2Insights

Build Status Known Vulnerabilities Depdencies Status Maintainability

This repository is a simple middleware which gets Bitbucket events payloads and sends it to New Relic Insight as a custom event.

Requirements

This application is compatible with Bitbucket Server but not Cloud. Due to some divergences between both platforms Cloud is excluded. You must have a New Relic account and have access to generate an Insert Key.

Travis

Travis will push automatically the Docker image to Dockerhub. If you decide to use your own registry, after forking the repository you may to add the following environment variables to Travis:

  • DOCKER_REPOSITORY
  • DOCKER_USERNAME
  • DOCKER_PASSWORD

Documentation

This application is using Openapi 3.0 to make the documentation, feel free to use the online edit to see the documentation. Also, if you are running this application, you would be able to see the documentation under the root path (YOUR_HOST:/)

How to make it running?

  • Run npm install
  • Check the config file and make sure you either are using the static port or you set up PORT as an environment variable.
  • Run npm start
  • Send any Bitbucket events payloads

Test

WIP

Contribute

Is there something missing? You are more than welcome to contribute either opening an issue or making a pull request.

About

Bitbucket events to Insights events middleware

License:Apache License 2.0


Languages

Language:JavaScript 83.8%Language:Shell 10.7%Language:Dockerfile 5.6%