简体   繁体   中英

GIT clone issue in jenkins

I am getting below issue in Jenkins git clone:

15:18:02 ERROR: Error fetching remote repo 'origin'
15:18:02 ERROR: Error fetching remote repo 'origin'

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'

I ran below command on server and cloned manually and it was working properly.

unset SSH_ASKPASS

I set "unset SSH_ASKPASS" in .bash_profile and tried to run from jenkins again, but got the same error. Same is the case with envInject plugin. Jenkins is creating issue while doing clone freshly. It is working for fetching updated data on existed workspace.

I am using below version of plugins:


Jenkins: 1.580.3
GIT Plugin: 2.3.4
GIT Client Plugin: 1.15.0
Git client version on server: 1.9.3

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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