Drone server 2.16.0
We are facing the situation where some notification are being sent with status success with steps being failed.
I’ve done some testing and created a test pipeline where i fail a step, and the created a couple of steps with condition “status == failed” to get the actual build status and send a notification.
The issue is that those steps are triggered as expected but they still get the status as successful when there is a previous step failed.
kind: pipeline
type: docker
name: test notification
steps:
- name: world
image: alpine:3.8
commands:
- echo world
- exit 1
- name: status
image: alpine:3.8
commands:
- echo ${DRONE_BUILD_STATUS}
- exit 1
depends_on:
- world
when:
status:
- failure
- name: slack
image: plugins/slack
settings:
webhook:
from_secret: slack_hook
channel: pedrop-tests
when:
status:
- failure
depends_on:
- status
Am i missing something??