繁体   English   中英

无法在詹金斯中签出git子模块

[英]unable to checkout git submodules in jenkins

我一直在尝试配置jenkins作业失败,该作业应该使用子模块克隆git repo。 一切正常,直到命中“ git submodule update”,并返回以下错误:

12:03:17 Submodule '<name>' (https://<url>.git) registered for path '<name>' 12:03:17 + git submodule update 12:03:17 Cloning into '<name>'... 12:03:18 fatal: could not read Username for 'https://github.com': No such device or address 12:03:18 fatal: clone of 'https://<name2>' into submodule path 'data_gateway' failed 12:03:18 Build step 'Execute shell' marked build as failure 12:03:18 Finished: FAILURE我可以使用我的用户名(不是jenkins)使用ssh克隆主存储库为Jenkins用户创建密钥,并将其添加到github,并尝试使用用户名和密码,但是它们都没有摆脱这个问题。

正在读取负载,但找不到任何解决方案。 任何指针将不胜感激,

谢谢

我终于修复了它,将用于jenkins机器的ssh密钥添加到github,并为子模块使用了远程URL的ssh版本。 在jenkins的凭据配置中,您可以设置计算机的实际ssh密钥。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM