Command Buildkite from your Slack chat with this example Slack Outgoing Webhook.
-
Fork it
-
Create a new Outgoing Webhook on Slack. Copy the token.
-
Head back to Slack and set trigger words to:
!buildkite,buildkite:
-
Copy the Heroku URL into URL(s)
-
Save your webhook
-
Set the name to
Buildkite
and icon to this -
Test it by typing
!buildkite
in your Slack -
Profit
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 withwrite_builds
permissionBUILDKITE_DEFAULT_ORG_SLUG
- The default org slug to use so you can refer to a project w/o the orgSLACK_TOKEN
- The token from Slack when you created the outgoing webhook
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.
See the LICENSE file for license rights and limitations (MIT).