Make sure you have webhooks turned on. To enable webhooks for your repository, go to its Settings > Automatic Commit Analysis and Enable webhooks. Please note that only users with administrator permissions for the repository on GitHub or Bitbucket can manage webhooks in bitHound.
Enable Failing Criteria and set your failing triggers.
Before you continue, be sure to npm install the bithound package into your project to make sure your integration works locally first.
Note: If your project is private, your command may look like this
bithound check 22be1601-d4f5-22f4-8gf7-54f621c73428
On Bitbucket, add the Bitbucket Pipelines addon and enable it for the repository in question.
Create your bitbucket-pipelines.yml file and commit it into the root of your repository. Note that we are installing the bitHound npm package with a -g here.
You're done. The Bitbucket Pipelines addon will auto-detect your bitbucket-pipelines.yml file and start the build at which point you will get a pass/fail result from bitHound.
Note: bitHound will automatically grab the needed environment variables from the Pipelines addon and as a result we fully support multiple branch analysis and feedback