Ask Your Question

Executor Error Handling

asked 2019-06-15 14:59:59 -0500

anonymous user



Shell Executor ==> How to fail the pipeline based on some text message which is written in shell executor component.

for Example : In my shell script if i write

echo "File Not Found"

Based on FileNotfound message pipeline has to fail and should not continue further pipelines.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-06-17 11:50:23 -0500

iamontheinet gravatar image


This doesn't sound like proper or recommended use of Shell Executor, but here's a workaround -- in your shell script, conditionally return exit 1 (for example, on "File Not Found") and in the Shell Executor config set On Record Error to Stop Pipeline. Again, this is more of a workaround and may have other side effects.

Cheers, Dash

edit flag offensive delete link more


I have couple of things which i need some clarifications on Shell executor along with the above suggestions a) How to get Stdout value if job gets success/fail along with the echo message which we pass.

Vss@2019 gravatar imageVss@2019 ( 2019-06-17 12:24:38 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-06-15 14:59:59 -0500

Seen: 247 times

Last updated: Jun 17 '19