由于失败轮询,Jenkins触发构建

时间:2015-07-27 05:40:42

标签: jenkins

我正在使用Jenkins将NodeJS项目推送到Heroku。我的项目配置有2个git存储库设置,一个是源代码,另一个是heroku的app git存储库。

问题是jenkins在两个存储库上进行轮询,当它找不到我在代码存储库中查找的分支时失败并出现以下错误:

Using strategy: Default
[poll] Last Built Revision: Revision 1234 (origin/qa)
using GIT_SSH to set credentials Jenkins SSH Key
 > git -c core.askpass=true ls-remote -h git@heroku.com:my-app.git qa # timeout=10
[poll] Couldn't get remote head revision
Done. Took 3 sec
Changes found

正如您所看到的,它无法找到heroku git存储库的头版本并确定找到的更改。

如何才能在源代码存储库中进行Jenkins轮询?

1 个答案:

答案 0 :(得分:1)

我已将我的GIT插件更新到2.4.0版本,它似乎解决了这个问题。