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:
build:
image: propheris/ruby:2.4.0
secrets: [gems_password]
commands:
- exit 0
notify:
image: plugins/slack
webhook: https://example.com/hooks/token
channel: dev
username: drone
icon_emoji: drone
I change exit 0
or exit 1
to simulate a successful or failed build.
- Drone 0.7
- plugin/slack