Skip to content

sj26/git-buildkite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

Git Buildkite

Start Buildkite builds using Git with a clickable link:

git buildkite building buildkite on buildkite

Walks you through first time configuration.

Installation

Install on macOS using Homebrew:

brew install sj26/git-buildkite/git-buildkite

Or just download the git-buildkite script in this repository somewhere into your $PATH. It works on Linux, too.

Add a Buildkite API Access Token with:

$ git config --global buildkite.apikey my-api-key

Or store it more securely in your macOS Keychain:

$ security add-generic-password -s api.buildkite.com -a "$USER" -w
password data for new item:
retype password for new item:

Or in GNOME Keychain, or other secret stores which Keyring supports:

$ pip install keyring
$ keyring set api.buildkite.com "$USER"
Password: *****

Usage

Start a build on your current branch and commit:

$ git buildkite

Start a build on another branch and its current commit:

$ git buildkite my-branch-name

Start a build on another branch at a specific commit:

$ git builkdite my-branch-name 87cba321

HEAD can be used as an alias for the current branch name when you only want to specify a commit:

$ git buildkite HEAD 87cba321

Any Git revision works as a commit:

$ git buildkite HEAD "@{1 week ago}"

You can automatically open the build in your browser, too:

$ git buildkite --browse

To Do

  • Better result parsing and error handling

License

MIT, see LICENSE.

About

Start Buildkite builds using git with a clickable link

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages