. 'currentBuild.currentResult' is
definitely what i needed and works as intended.
On Fri, 1 Mar 2019 at 06:37, Simon Bayer
mailto:schn...@msn.com>> wrote:
Check This if u need post build actions for different build status:
https://jenkins.io/doc/pipeline/tour/post/
Ursprün
Check This if u need post build actions for different build status:
https://jenkins.io/doc/pipeline/tour/post/
Ursprüngliche Nachricht
Von: Simon Bayer
Datum: 01.03.19 06:32 (GMT+01:00)
An: jenkinsci-users@googlegroups.com
Betreff: Re: sending email for unstable builds
Dear
Dear Faad, dear Sagar,
U could check the global variable 'currentBuild.currentResult' in e.g. post
build actions. Maybe it suits your needs. Doks:
https://opensource.triology.de/jenkins/pipeline-syntax/globals#currentBuild
Best regards
Ursprüngliche Nachricht
Von: Sagar Utek
Hi Mike, u could use the object 'currentbuild' to modify the job description.
Its available in declarative pipeline builds (e.g. with multiproject pipeline
plugin). Furthermore the build status can be set. But beware: if u set the
status to 'failure', Post build actions for failures will not be