Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bitbucket-build-status-hook

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitbucket-build-status-hook

A post-checkout hook for checking commit build status via the Bitbucket REST API.

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Bitbucket Build Status Hook

This is a Git hook for retrieving build Statuses for commits in Git repositories hosted on Bitbucket.

Usage

You can run bitbucket-build-status to check the build statuses of your repository's HEAD commit at any time, but this tool is most useful when symlinked as a post-commit hook:

$ cd some_git_repo

$ ln -s /usr/local/bin/bitbucket-build-status .git/hooks/post-checkout

$ git checkout master

Switched to branch 'master'
Sweet action! 234ffc1 has 5 green builds

$ git checkout my_feature

Switched to branch 'my_feature'
Oh no! f2ec0c2 has 3 failed builds (Test on Saucelabs, Test with Firefox, AUI-JIRA visual regression)
Details at https://bitbucket.org/atlassian/aui/commits/f2ec0c22635271c39c43143f49cb07588b12bf68

Installation

  • Install Node.js and npm
  • Run npm install -g bitbucket-build-status
  • Run ln -s /usr/local/bin/bitbucket-build-status .git/hooks/post-checkout from the root of a Git repository hosted on Bitbucket
  • Run git checkout HEAD to test that the hook is properly installed

Credential management

The first time you upload a file you will be prompted for your Bitbucket email and password. These will be used to retrieve an OAuth refresh token which is stored in ~/.bitbucket-build-status and used for subsequent requests. Treat this token carefully as it can be used to read repository data on your behalf.

Keywords

FAQs

Package last updated on 20 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc