hudson+git 致命:无法应用标签
我正在尝试根据 这篇文章, 但我在构建过程中仍然遇到 git 错误:
FATAL: Could not apply tag-PROJECTNAME-ID
...
Caused by: hudson.plugins.git.GitException: Command returned status code 128:
*** Please tell me who you are.
运行: git config --global user.name
显示有效数据,.gitconfig
可访问。
如何纠正这些错误?
I'm trying to set up hudson with git according to this article,
but I still get git errors during build:
FATAL: Could not apply tag-PROJECTNAME-ID
...
Caused by: hudson.plugins.git.GitException: Command returned status code 128:
*** Please tell me who you are.
running: git config --global user.name
shows valid data, .gitconfig
is accessible.
How to correct those errors?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
安装 git 插件后,您可以在 Jenkins“配置系统”页面中配置 git 名称和电子邮件...
After installing the git plugin you can configure git name and email in Jenkins "Configure System" page...
如果可能需要
user.name
和user.email
。实际上有一个开放票证可以自动设置它们。
这也可能是 Hudson 服务器问题:
作为这里提到,你可能有一个特殊的tomcat6用户,没有帐户(不允许登录,没有shell:我引用“tomcat6はログイン不许可(shieruは/bin/false)ってなっている"),在这种情况下,您需要在系统级别设置用户名和电子邮件)
如果您在 Hudson 中使用 tomcat6 用户,Hudson 将需要在 /etc/passwd 中查看该用户,< a href="http://translate.google.fr/translate?hl=fr&sl=de&tl=en&u=http%3A%2F%2Fwww.pincservices.de%2Fwordpress%2Fgit-geht-nicht- gern-mit-fremden-please-tell-me-who-you-are" rel="noreferrer">如此处所述:
If might need both
user.name
anduser.email
.There is actually an open ticket to set them automatically.
It might also be a Hudson server issue:
As mentioned here, you might have a special tomcat6 user with no account (no login allowed, with no shell: I quote "tomcat6はログイン不許可( シェルは/bin/false)ってなっている"), in which case you need to setup user.name and email on the system level)
If you are using the tomcat6 user in Hudson, Hudson will need to see that user in the /etc/passwd, as mentioned here:
在带有 git 插件的新 Hudson 版本中,您可以通过 Hudson Web 界面选项设置用户名和用户电子邮件。
In the new Hudson version with git plugin, you may set both: the username and the user email via the Hudson web interface options.
或者您可以禁用标记。在项目配置中,在“源代码管理”下转到“高级”。在那里您可以检查“跳过内部标记”
Or you just can disable tagging. In project configurations, under Source Code Management go to Advanced. There you can check "Skip internal Tagging"