drone-slack | Drone plugin for sending Slack notifications | Plugin library
kandi X-RAY | drone-slack Summary
kandi X-RAY | drone-slack Summary
Drone plugin for sending Slack notifications
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- main creates a new app
- run runs the plugin .
- Exec executes the slack plugin
- newCommitMessage returns a new message .
- message returns a string representation of a build .
- Fallback returns a string representation of the given build .
- color converts a build to color string .
- Helper function to prepend a string to a given string
- templateMessage renders a template message
drone-slack Key Features
drone-slack Examples and Code Snippets
docker run --rm \
-e SLACK_WEBHOOK=https://hooks.slack.com/services/... \
-e PLUGIN_CHANNEL=foo \
-e PLUGIN_USERNAME=drone \
-e DRONE_REPO_OWNER=octocat \
-e DRONE_REPO_NAME=hello-world \
-e DRONE_COMMIT_SHA=7fd1a60b01f91b314f59955a4e4d4e
docker run -it --rm -v "$(pwd)":/usr/local/src/your-app githubchangeloggenerator/github-changelog-generator -u drone-plugins -p drone-slack -t
docker run -it --rm -v "$(pwd)":/usr/local/src/your-app githubchangeloggenerator/github-changelog-generat
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -a -tags netgo -o release/linux/amd64/drone-slack
docker build --rm -t plugins/slack .
Community Discussions
Trending Discussions on drone-slack
QUESTION
When my build is successful I get a slack notification, when it fails I do not. Looking at the Drone web UI it looks like it stops once the build fails and the slack plugin is never run.
A successful build results in notify
happening:
A failed build does not get to the notify stage:
The key parts of the .drone.yml
are as follows:
ANSWER
Answered 2017-Nov-02 at 13:15I've taken a look at the docs and it seems your missing the following line:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install drone-slack
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page