问题描述
在任何人枪我之前。我已经查看所有的消息,有这个错误,但他们似乎从一个不同的问题,我不能得到任何实质性的信息。以下是我在git轮询日志中遇到的错误...
Before anyone guns me down..I have looked at all the messages that has this error but they seem to manifest from a different problem,I couldn't get any substantial information. Following are the errors I'm running into in the git polling log...
-
我没有关于错误#1,请提供输入
I don't have a clue regarding error #1,please provide inputs
为此,我阅读了其他问题,$ GERRIT_REFSPEC动态填充,当有一个gerrit触发器,我明白为什么我在git poll日志中看到这个。如何解决此问题?
For this,I read on other questions that $GERRIT_REFSPEC gets filled in dynamically when there is a gerrit trigger but i don't understand why I keep seeing this in the git poll log. How can I fix this ?
错误讯息:
Error messages:
-
错误:从原始/原始提取问题 - 可能无法使用。仍然继续
ERROR: Problem fetching from origin / origin - could be unavailable. Continuing anyway
hudson.plugins.git.GitException:Command/ usr / bin / git fetch -t ssh://company.com:29418 / platform /vendor/proprietary/mla.git $ GERRIT_REFSPEC返回的状态代码128:
stdout:
stderr:fatal:找不到远程引用$ GERRIT_REFSPEC
hudson.plugins.git.GitException: Command "/usr/bin/git fetch -t ssh://company.com:29418/platform/vendor/proprietary/mla.git $GERRIT_REFSPEC" returned status code 128:stdout:stderr: fatal: Couldn't find remote ref $GERRIT_REFSPEC
推荐答案
- 转到作业的配置页面并搜索以检查 / em>框。
- 然后将名称设置为 GERRIT_REFSPEC
- 和默认值到 refs / heads / master 。
- Go to the Job's Configure page and search to check This build is parameterized box.
- Then set Name to GERRIT_REFSPEC
- and Default value to refs/heads/master.
我花了一些时间搜索如何添加字符串参数在Gerrit触发器插件手册中提到。我使用Jenkins 1.567与Gerrit触发器2.11.1。
It took me some time to search for how to add this string parameter mentioned in the Gerrit Trigger plugin manual. I use Jenkins 1.567 with Gerrit Trigger 2.11.1.
这篇关于stderr:fatal:无法找到远程引用$ GERRIT_REFSPEC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!