GithubHelp home page GithubHelp logo

innometrics-agent-bitbucket's Introduction

Bitbucket Webhook

Running procedure

  1. Create a file .env in the root directory and specify the following variables:
    • DEBUG - enable DEBUG mode
    • AGENT_HOST - if not DEBUG, then specify the address which will be assigned to the app (it is passed to Django's ALLOWED_HOSTS
    • DB_HOST, DB_PORT, DB_USER, DB_PASSWORD, DB_NAME - credentials of a running instance of Postgres. Default values are localhost, 5432, postgres, 123456, postrgres respectively.
    • SECRET_KEY - Django's secret key. Must be specified if not DEBUG
  2. docker-compose up

Integration

The application creates 2 tables at postgres/public: bitbucket_agent_report and django_migrations. The first one contains the actual information from BitBucket, and the second one is for service purposes.

The columns in bitbucket_agent_report are the following:

  • id (Integer) -- Primary key
  • eventKey (Text) -- The event tag. See in official documentation.
  • date (Timestamp with time zone) -- the timestamp of the event specified by Bitbucket
  • actor (Text) -- A JSON string describing an actor. Example:
    {
        'name': 'mavl', 
        'emailAddress': '[email protected]', 
        'id': 1, 
        'displayName': 'Mavl', 
        'active': True, 
        'slug': 'mavl', 
        'type': 'NORMAL', 
        'links': {
                'self': [{'href': 'http://10.90.138.181:7990/users/mavl'}]
                }
    }
    
  • raw (Text) -- The RAW unformatted data received from the Bitbucket. Needed for deserialization and for HMAC calculation.
  • received_on (Timestamp with time zone) -- the timestamp when this event has been received by the agent
  • HMAC (Text) -- HMAC checksum received from Bitbucket. This value is a HMAC SHA256 (with specified secret key) checksum calculated on the RAW data as a whole.

innometrics-agent-bitbucket's People

Contributors

themavl avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

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.