当我们从CI服务器(TeamCity)推出我们的节点应用程序时,我们看到git推送失败。它偶尔会发生(每10个版本中就有1个)我无法确定导致它的原因。我已经为构建添加了“重试失败”步骤,它总是在第二次尝试时使用。
如果我更改TeamCity以对每个构建进行新的结帐,它永远不会出错,但会超过构建时间的两倍。
仅供参考,构建过程执行结帐,然后执行grunt构建,然后在本地提交构建,以便将构建的代码推送到Heroku。我正在进行强制推动,应该涵盖这种情况:
git push -f git@heroku.com:myapp.git trunk:master
以下是从Heroku回来的日志摘录:
[[08:27:37][Step 7/7] Dependencies installed
[08:27:37][Step 7/7] -----> Building runtime environment
[08:27:37][Step 7/7] -----> Discovering process types
[08:27:37][Step 7/7] Procfile declares types -> web
[08:27:42][Step 7/7]
[08:27:42][Step 7/7] ! Heroku push rejected due to an unrecognized error.
[08:27:42][Step 7/7] ! We've been notified, see http://support.heroku.com if the problem persists.
[08:27:42][Step 7/7]
[08:27:42][Step 7/7]
[08:27:42][Step 7/7] To git@heroku.com:devgrade.git
[08:27:42][Step 7/7] ! [remote rejected] trunk -> master (pre-receive hook declined)
[08:27:42][Step 7/7] error: failed to push some refs to 'git@heroku.com:myapp.git'
[08:27:42][Step 7/7] Process exited with code 1
[08:27:42][Step 7/7] Step Push to Heroku (Command Line) failed