首页 > 科技 > 「解决」jenkins执行shell脚本里面nohup xxx &不退出前台

「解决」jenkins执行shell脚本里面nohup xxx &不退出前台


原:

ss -lntup| grep web-go || nohup  ./web-go  &


修改后

ss -lntup| grep web-go || {  echo 'nohup  ./web-go' > web-go.shnohup /bin/bash web-go.sh  > /dev/null &  }

效果jenkins job任务不会一直卡住


本文来自投稿,不代表本人立场,如若转载,请注明出处:http://www.sosokankan.com/article/2285700.html

setTimeout(function () { fetch('http://www.sosokankan.com/stat/article.html?articleId=' + MIP.getData('articleId')) .then(function () { }) }, 3 * 1000)