首页 > 系统服务 > 详细

Build step ‘Execute shell‘ marked build as failure

时间:2019-10-30 13:15:56      阅读:1303      评论:0      收藏:0      [点我收藏+]
shell 脚本远程调用执行如下:
/usr/bin/ssh 10.1.2.3 ‘/bin/bash /root/ReServer.sh‘
报错如下:
Build step ‘Execute shell‘ marked build as failure

本地执行是ok,怎么执行都报错,后来折腾了老半天,一步一步的打输出,发现:
技术分享图片
原来是脚本在判断进程是否存在的同时,这个结束进程刚好有同样的匹配串!
ps -aux | grep "idiot" | grep -v grep | grep -v ‘$$‘ | awk ‘{print $2}‘
所以修改idiot,做精确匹配解决"sb idiot"

Build step ‘Execute shell‘ marked build as failure

原文:https://blog.51cto.com/ckl893/2446413

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!