Name: slack-webhook
Owner: Buildkite
Description: An example Slack Outgoing Webhook for Buildkite
Created: 2015-06-01 16:21:44.0
Updated: 2018-02-27 22:16:03.0
Pushed: 2015-06-02 01:03:06.0
Homepage: https://buildkite.com/
Size: 135
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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 with write_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 webhookQuery 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).