You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I noticed that I receive always success emails even when a build has failed. I checked out the mail plugin in detail and find out that there are two environment variables DRONE_BUILD_STATUS and DRONE_PREV_BUILD_STATUS. DRONE_BUILD_STATUS contains always success and DRONE_PREV_BUILD_STATUS is not defined. This leads to the issue, that I always get success emails. Here a list of all environment variables passed into the container - some values are marked.
Is there an other way to determine the build status of the previous step?
Volker
The text was updated successfully, but these errors were encountered:
volker-raschek
changed the title
DRONE_PREV_BUILD_STATUS not defined in k8s environments
receive always success email in k8s environments even ci build has failed
Jul 24, 2022
@volker-raschek I also experience that ${DRONE_BUILD_STATUS} always prints "success" while {{build.status}} prints either "success" or "failure" depending of the actual result of the pipeline. I would like to use ${DRONE_BUILD_STATUS} in my yml file. Is there a solution for this?
Hi,
I noticed that I receive always success emails even when a build has failed. I checked out the mail plugin in detail and find out that there are two environment variables
DRONE_BUILD_STATUS
andDRONE_PREV_BUILD_STATUS
.DRONE_BUILD_STATUS
contains alwayssuccess
andDRONE_PREV_BUILD_STATUS
is not defined. This leads to the issue, that I always get success emails. Here a list of all environment variables passed into the container - some values are marked.Is there an other way to determine the build status of the previous step?
Volker
The text was updated successfully, but these errors were encountered: