在IIS访问问题中托管的teamcity git

时间:2012-10-06 06:33:35

标签: git teamcity

我正在尝试访问在IIS下托管的git仓库,并启用了Windows身份验证。

当我指定domain \ username这样的用户名时,连接失败。 从堆栈跟踪看起来错误是由于给出了网络用户名的方式。我们怎样才能给出具有域名的Windows auth用户。

当我执行git clone(https:/ domain \ user@mydomain.com/xyz /)时,这可以在控制台上正常工作

错误详情

Git Repo :: Git Repo中的测试连接失败。列表远程引用失败: java.net.ConnectException:无法确定....的代理

堆栈跟踪

Caused by: org.eclipse.jgit.errors.TransportException: https:/domain\user@mydomain.com/xyz/info/refs?service=git-upload-pack
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:466)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:276)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getRemoteRefs(GitVcsSupport.java:523)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getRemoteRefs(GitVcsSupport.java:503)
... 44 more

Caused by: java.net.ConnectException: Cannot determine proxy for https:/domain\user@mydomain.com/xyz/info/refs?service=git-upload-pack
at org.eclipse.jgit.util.HttpSupport.proxyFor(HttpSupport.java:196)
at org.eclipse.jgit.transport.TransportHttp.httpOpen(TransportHttp.java:475)
at org.eclipse.jgit.transport.TransportHttp.httpOpen(TransportHttp.java:471)
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:422)
... 47 more

**Caused by: java.net.URISyntaxException: Illegal character in authority at index 8: https:/domain\user@mydomain.com/xyz/info/refs?service=git-upload-pack**
at java.net.URI$Parser.fail(Unknown Source)
at java.net.URI$Parser.parseAuthority(Unknown Source)
at java.net.URI$Parser.parseHierarchical(Unknown Source)
at java.net.URI$Parser.parse(Unknown Source)
at java.net.URI.<init>(Unknown Source)
at java.net.URL.toURI(Unknown Source)
at org.eclipse.jgit.util.HttpSupport.proxyFor(HttpSupport.java:193)

1 个答案:

答案 0 :(得分:0)

您的网址中似乎有拼写错误。

你有

https:/domain\user@mydomain.com/xyz/

而不是

https://domain\user@mydomain.com/xyz/