Determine Failed Stage in Jenkins Declarative Pipeline

6 views
Skip to first unread message

Vitaly Karasik

unread,
Jan 16, 2019, 4:50:41 AM1/16/19
to Jenkins Users
I'd like to report failed stage in the email notification (similar to https://stackoverflow.com/questions/43439093/determine-failed-stage-in-jenkins-declarative-pipeline).
There is env.STAGE_NAME, but unfortunately, it reports "Declarative: Post Actions", not the last stage in the build itself.
Is there any simple way for determinate and report failed stage  in  Jenkins Declarative Pipeline?

TIA,
Vitaly


Reply all
Reply to author
Forward
0 new messages