channelExec.isClosed()) { if (in.available() > 0) continue; //获取退出状态,状态0表示脚本被正确执行 System.out.println("exit-status 如下 hello zimug exit-status: 0 当然,我只是为大家演示这样一个例子,上面的代码可以通过更好的封装,从而提供更简单的使用方式。 喜欢 (1)or分享 (0)
C0644 0 test test 100% 0 0.0KB/s 00:00 debug1: client_input_channel_req: channel 0 rtype exit-status 0.0KB/s 00:00 scp: debug1: truncating at 0 debug1: client_input_channel_req: channel 0 rtype exit-status
) continue; exitValue = channel.getExitStatus(); log.debug("exit-status
Creating network allinone-cicd_webnet Creating service allinone-cicd_backend [SSH] completed [SSH] exit-status
usr/local/redis/etc/ bash: scp: command not found debug1: client_input_channel_req: channel 0 rtype exit-status
Waiting 1 seconds to verify that tasks are stable... verify: Service converged [SSH] completed [SSH] exit-status
elif [ "$POWERLINE_RIGHT_A" = "exit-status" ]; then POWERLINE_RIGHT_A=%(?.%F{green}✔ %?.
100% 35MB 12.1MB/s 00:02 debug1: client_input_channel_req: channel 0 rtype exit-status
img/jenkins/jenkins29.png create mode 100644 assets/img/jenkins/jenkins30.png [SSH] completed [SSH] exit-status
create mode 100644 assets/img/jenkins/jenkins9.png Sun Jan 21 00:28:23 CST 2018 [SSH] completed [SSH] exit-status
Login Succeeded afa55c8e5fe64bc2f652fdc3813f077173baff4e8cfd4301c5c49c75bdb3d953 [SSH] completed [SSH] exit-status
output drain -> closed debug3: receive packet: type 98 debug1: client_input_channel_req: channel 0 rtype exit-status output drain -> closed debug3: receive packet: type 98 debug1: client_input_channel_req: channel 0 rtype exit-status
-e/ --exit-status: false如果最后一个输出值不是nor null,则将jq 的退出状态设置为 0,如果最后一个输出值是falseor null,则设置为 1,如果没有产生有效结果,