I can only get the slack plugin for Drone to fire off if the job gets to that step, otherwise, if it fails I have no idea unless I look at my drone instance. Is there a way to fix this? I’m assuming I have it in the wrong place? This is located at the bottom of my steps in my drone yaml. Is there any way to have the step fire off even if the others before it fail?
image: plugins/slack
settings:
webhook: ---
icon_url: ---
username: Drone
channel: ---
template: >
{{#success build.status}}
Build {{build.number}} succeeded and deployed :)
Event: {{build.event}}
Branch: {{build.branch}}
Tag: {{build.tag}}
Git SHA: {{build.commit}}
Link: {{build.link}}
{{else}}
Build {{build.number}} failed and did not deploy :(
Event: {{build.event}}
Branch: {{build.branch}}
Tag: {{build.tag}}
Git SHA: {{build.commit}}
Link: {{build.link}}
{{/success}}
when:
status: [success, failure]```