I have just pulled the latest image from Docker Hub, and noticed this issue while running my pipeline.
I’m using DRONE_STAGE_STATUS to get status of the pipeline stage, it returned ‘success’ when the stage is failing.
Could anyone assist me on this?
This is the notification I got on MS Teams:
From the docs, it looks like it only prints the currently running stage:
Provides the status for the current running pipeline. If all pipeline steps are passing, the pipeline status defaults to success.
Maybe you could use a status trigger?
Thank you for your reply. Actually the trigger was correct, but I’m expecting FAILURE to be the Status instead of success in the notification (2nd picture) and I saw the pipeline status was failing.
FYI, I’m using “DRONE_STAGE_STATUS” variable to get this status.
Thank you for your reply. I will try your example and update here.