简体   繁体   English

Jenkins中的GIT克隆问题

[英]GIT clone issue in jenkins

I am getting below issue in Jenkins git clone: 我在詹金斯git clone中遇到以下问题:

15:18:02 ERROR: Error fetching remote repo 'origin' 15:18:02错误:获取远程回购“来源”时出错
15:18:02 ERROR: Error fetching remote repo 'origin' 15:18:02错误:获取远程回购“来源”时出错

I tried to manually cloning on the server and got below error: 我尝试在服务器上手动克隆,但出现以下错误:

(gnome-ssh-askpass:25670): Gtk-WARNING **: cannot open display: error: unable to read askpass response from '/usr/libexec/openssh/gnome-ssh-askpass' (gnome-ssh-askpass:25670):Gtk警告**:无法打开显示:错误:无法读取'/ usr / libexec / openssh / gnome-ssh-askpass'的askpass响应

I ran below command on server and cloned manually and it was working properly. 我在服务器上运行了以下命令,并进行了手动克隆,并且工作正常。

unset SSH_ASKPASS 未设置SSH_ASKPASS

I set "unset SSH_ASKPASS" in .bash_profile and tried to run from jenkins again, but got the same error. 我在.bash_profile中设置了“未设置SSH_ASKPASS”,并尝试再次从jenkins运行,但是出现了相同的错误。 Same is the case with envInject plugin. envInject插件也是如此。 Jenkins is creating issue while doing clone freshly. 詹金斯(Jenkins)在重新制作克隆文件时正在制造问题。 It is working for fetching updated data on existed workspace. 它适用于在现有工作空间上获取更新的数据。

I am using below version of plugins: 我正在使用以下版本的插件:


Jenkins: 1.580.3 詹金斯:1.580.3
GIT Plugin: 2.3.4 GIT插件:2.3.4
GIT Client Plugin: 1.15.0 GIT客户端插件:1.15.0
Git client version on server: 1.9.3 服务器上的Git客户端版本:1.9.3

包含“原点”的错误通常是指git远程配置错误:例如,您正在没有特权的用户上运行jenkins,而该用户的家中没有.git配置。

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

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