Build failures are not showing up in slack

Hi team,

I am able to get the slack messages for successful builds whereas not able to get the message for failure one’s. Below the code

  • name: slack
    image: plugins/slack
    settings:
    webhook: https://hooks.slack.com/services/xxxx
    channel: xxxx
    username: drone
    link_names: true
    template: >
    {{#if build.pull }}
    {{#success build.status}}:heavy_check_mark:{{ else }}✘{{/success}} {{ uppercasefirst build.status }}: <https://github.com/{{ repo.owner }}/{{ repo.name }}/pull/{{ build.pull }}|Pull Request #{{ build.pull }}>
    {{else}}
    {{#success build.status}}:heavy_check_mark:{{ else }}✘{{/success}} {{ uppercasefirst build.status }}: Build #{{ build.number }} (type: {{ build.event }})
    {{/if}}

    Commit: <https://github.com/{{ repo.owner }}/{{ repo.name }}/commit/{{ build.commit }}|{{ truncate build.commit 8 }}>
    
    Branch: <https://github.com/{{ repo.owner }}/{{ repo.name }}/commits/{{ build.branch }}|{{ build.branch }}>
    
    Author: {{ build.author }}
    
    <{{ build.link }}|Visit build page ↗>
    

can someone provide thoughts on this please

when a pipeline step fails, all subsequent steps are skipped by default and the pipeline exits. If you would like a pipeline step to execute on failure, it needs to be configured to do so. Example at https://docs.drone.io/pipeline/docker/syntax/conditions/#by-status