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,但也没有成功 .
1 回答
是否有jenkins的代理设置 . 我猜服务器dns没有得到解决 . 你能检查一下dns和服务器的访问权限吗?