Posted: June 08, 2011 14:47 by paulfrm
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) ?