This is the default for Jenkins, if a command exits with a non-zero exit code, then the job should already fail.
On Tue, Nov 22, 2022 at 5:41 AM Praju <prajuhg...@gmail.com> wrote: > Hi , > I need to fail jenkins job if any linux command return error message , > could any one help one this > > Thank you > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/16344cad-dadf-4c55-a41f-a32acb3b82d9n%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/16344cad-dadf-4c55-a41f-a32acb3b82d9n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Website: http://earl-of-code.com -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVcnmew6ZDK_MbpBjwD9E6N_Nqxja%2B2h2SuQi-xwV7jMFA%40mail.gmail.com.