Skip to main content

Ignoring non zero value returned by script using SSH plugin

  1 post   Feedicon  
Replies: 0 - Last Post: June 08, 2011 14:47
by: paulfrm
showing 1 - 1 of 1
Posted: June 08, 2011 14:47 by paulfrm
Hi.
I need to call shell script on remote machine using SSH.
I would expect that when the shell script on remote machine exits with non-zero value the current build is stopped or marked as failed.

But I see in "Console Output" message "[SSH] exit-status: 2" and build continues and is marked as "Success".

Can I stop or mark build as failed by returned value from the script (using SSH plugin) ?
Thank you.
Replies: 0 - Last Post: June 08, 2011 14:47
by: paulfrm
 
 
Close
loading
Please Confirm
Close