温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Build step 'Execute shell' marked build as failure

发布时间:2020-06-16 22:42:14 来源:网络 阅读:2152 作者:ckl893 栏目:系统运维

shell 脚本远程调用执行如下:
/usr/bin/ssh 10.1.2.3 '/bin/bash /root/ReServer.sh'
报错如下:
Build step 'Execute shell' marked build as failure

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

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI