Skip to content

gunjanshah/slack-webhook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buildkite Slack Incoming Webhook

Command Buildkite from your Slack chat with this example Slack Outgoing Webhook.

Usage

  1. Fork it

  2. Create a new Outgoing Webhook on Slack. Copy the token.

  3. Deploy it to Heroku
    Deploy

  4. Head back to Slack and set trigger words to: !buildkite,buildkite:

  5. Copy the Heroku URL into URL(s)

  6. Save your webhook

  7. Set the name to Buildkite and icon to this

  8. Test it by typing !buildkite in your Slack

  9. Profit

Configuration

If you deployed it yourself (not using the above Heroku Deploy button) you'll need to set the following environment variables:

  • BUILDKITE_API_TOKEN - A Buildkite API token with write_builds permission
  • BUILDKITE_DEFAULT_ORG_SLUG - The default org slug to use so you can refer to a project w/o the org
  • SLACK_TOKEN - The token from Slack when you created the outgoing webhook

Personalizing

Query or stop a build agent with the Agents API? List the last build for a project with the Projects API? The sky’s the limit! And if it’s something everyone could use why not send a pull request.

License

See the LICENSE file for license rights and limitations (MIT).

About

An example Slack Outgoing Webhook for Buildkite

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%