Ask Your Question
0

Executor Error Handling

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

anonymous user

Anonymous

Hi,

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
0

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

iamontheinet gravatar image

Hi!

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

Comments

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

Stats

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

Seen: 109 times

Last updated: Jun 17