You can certainly do it with the Build Flow (DSL) plugin From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Panikera Raj Sent: Monday, November 10, 2014 8:36 AM To: jenkinsci-users@googlegroups.com Subject: Fwd: Stop the execution if First task is failed even if multiple tasks are added to the project
Hi All, I have a project in Jenkins (as free style project) where I have added multiple tasks as an attachment. As I showed in attachment in first task condition is not satisfied I need to come out from the execution I don't want to execute second task. I can put exit 1. But If condition is not matched project will get marked as Failure and mail will go to every one. So if put just exit 0. It will come out from the first task then once again second task will execute. I don't want to be execute like this. Is there a way where if first task not satisfied condition we can come out from complete execution(with out executing second task) Regards, Panikera -- 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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>. For more options, visit https://groups.google.com/d/optout. -- 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. For more options, visit https://groups.google.com/d/optout.