Team, we are trying to do git fetch origin. Its is failing with incorrect device or password. We are using the correct password in the git clone url. Please check below and help to resolve the error.
+ /opt/app/git/2.9.0-05/bin/git init
Reinitialized existing Git repository in /opt/app/test_node/sdt-devops.vci.xxx.com_1234/sharedspace/.git/
+ /opt/app/git/2.9.0-05/bin/git config --list --show-origin
file:.git/config core.repositoryformatversion=0
file:.git/config core.filemode=true
file:.git/config core.logallrefupdates=true
file:.git/config core.bare=false
file:.git/config remote.origin.url=https://test@codecloud.web.test.com/scm/st_xxx/test.git
+ /opt/app/git/2.9.0-05/bin/git fetch --all
Fetching origin
fatal: could not read Password for 'https://test@codecloud.web.test.com': No such device or address
error: Could not fetch origin
Build step 'Execute shell' marked build as failure
在上面的日志中,我们使用了git init和git fetch-来自Jenkins的所有命令都执行shell。我们尝试使用ssh代替https也不成功。
答案 0 :(得分:0)
jenkins是否有任何代理设置。我猜服务器dns没有解决。您可以检查dns和对服务器的访问吗?