0
我有一个脚本运行在我的詹金斯将我的应用程序部署到engineyard。我的Jenkins环境安装了'engineyard'gem。xargs - 没有这样的文件目录 - 詹金斯
first_customer_symbol=`bundle exec rake customer:deploy_targets[$DEPLOY_TO] | sed '1!d'
ey status --account='account-****' --app="$first_customer_symbol" --environment="$DEPLOY_TO" | grep "Resolved Ref" | grep -Po "\b[0-9a-f]{5,40}\b" | xargs -i git diff --exit-code HEAD {} db/migrate 1> /dev/null
new_migrations=$?; if [ $new_migrations != 0 ]; then
bundle exec rake customer:deploy_targets[$DEPLOY_TO] | xargs -n1 -P 7 ey deploy -e $DEPLOY_TO -r $BRANCH_TO_DEPLOY --migrate -a
else
bundle exec rake customer:deploy_targets[$DEPLOY_TO] | xargs -n1 -P 7 ey deploy -e $DEPLOY_TO -r $BRANCH_TO_DEPLOY --no-migrate -a
fi
我得到一个错误
xargs: ey: No such file or directory
xargs: ey: No such file or directory
xargs: ey: No such file or directory
xargs: ey: No such file or directory
xargs: ey: No such file or directory
xargs: ey: No such file or directory
xargs: ey: No such file or directory
我在做什么错在这里。 注意:我最近将Jenkins Ruby版本从2.0.0升级到2.2.5,并重新启动了我的Jenkins,之后我开始出现此错误。
我没有答案。看起来很奇怪,第2行的第一个“ey”工作正常,但没有其他的。 –