我正在使用Jenkins将NodeJS项目推送到Heroku。我的项目配置有2个git仓库设置,一个是源代码,另一个是heroku的应用程序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 [email protected]:my-app.git qa # timeout=10
[poll] Couldn't get remote head revision
Done. Took 3 sec
Changes found
如您所见,它无法找到heroku git存储库的主修订版并确定找到的更改。
如何使Jenkins仅在源代码存储库上进行轮询?
我已经将我的GIT插件更新为2.4.0版,它似乎可以解决问题。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句