Build step 'Execute shell' marked build as failure

Remote shell script called for execution as follows:
/ usr / bin / SSH 10.1.2.3 '/ bin / bash /root/ReServer.sh'
being given as follows:
Build the STEP 'the Execute shell' AS failure Marked Build

Local execution is ok, how to perform are being given, then toss waited a long time, step by step to play output, found:
Build step 'Execute shell' marked build as failure
the original script at the same time to determine whether the process exists, just the end of this process have the same matching string!
ps -aux | grep "idiot" | grep -v grep | grep -v '$$' | awk '{print $ 2}'
so modified idiot, do an exact match to solve the "sb idiot"

Guess you like

Origin blog.51cto.com/ckl893/2446413