我在Jenkins中运行了一个脚本,将我的应用程序部署到engineyard。我的詹金斯环境有“发动机厂”。宝石安装。
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,之后我开始收到此错误。
答案 0 :(得分:0)
重启我的jenkins实例后,我不得不安装' engineyard'宝石再次。
gem install engineyard
这解决了我的问题。