我正在尝试将Jenkins的工作从SVN转换到新的TFS-GIT存储库(在我们的组织内托管).
我指定了Git存储库
http://thehost:8080/tfs/path/_git/reponame
Run Code Online (Sandbox Code Playgroud)
詹金斯告诉我
Failed to connect to repository : Failed to connect to http://thehost:8080/tfs/path/_git/reponame (status = 401)
Run Code Online (Sandbox Code Playgroud)
我可以使用相同的repo URL从linux命令行成功运行Git,并且不会提示输入密码(使用来自.git-credentials的值).
配置是
詹金斯服务器
TFS-GIT服务器
在作业控制台中,存在同样的错误:
Building in workspace /var/lib/jenkins/workspace/myproject
Checkout:myproject / /var/lib/jenkins/workspace/myproject - hudson.remoting.LocalChannel@3edcc1f9
Using strategy: Default
Fetching changes from 1 remote Git repository
Fetching upstream changes from origin
ERROR: Problem fetching from origin / origin - could be unavailable. Continuing …Run Code Online (Sandbox Code Playgroud)