Article From:https://segmentfault.com/q/1010000012146622
Question:

To execute remote script, select remote shell script on remote host Using SSH
The script is as follows:

cp root.war jetty/webapps/
sh jetty/bin/jetty/sh restart

After execution, jetty started successfully, but where Jenkins turned around and couldn’t stop. After a long time, the message was:
Build was aborted。
How to solve it?

Execution scripts

After the construction:

Answer 0:

Is there a write JAVA_HOME in the script

Answer 1:

Thank you, but I’m not very familiar with itjenkins

Answer 2:

Try changing Send files or execute commands over SSH

Answer 3:

nohup Start?

Answer 4:

How did the landlord solve it? Mine has been stuck here.

Leave a Reply

Your email address will not be published. Required fields are marked *