Pipeline failure but build status success

the webhook plugin uses the stage status, not the overall pipeline status. Since the stage is passing the webhook emits success in the body. I believe you can modify the template to use the build status, but you would probably need to look at the code to figure it out GitHub - drone-plugins/drone-webhook: Drone plugin for triggering webhook notifications