问题描述
用于访问Azure DevOps中存储库的URL上有很多帖子,但是我的使用还有一个额外的麻烦:我正在使用Https从Azure Devops git存储库克隆到RedHat EAP 7.3下的JBPM Business Central存储库。 JBPM的Business Central具有用于URL,用户名和密码的文本框。
我的理解是,应该使用个人访问令牌(此处为PAT)来访问Azure DevOps存储库(我已经尝试了很多次而不使用PAT)。 Microsoft帖子显示了几种将存储库引用为URL的方法。当我使用
的URL时{PAT} @ {server} .visualstudio.com:/ {organization} / {project} / _ git / {repository}
大约30秒后,其“ connect”方法的连接超时
Caused by: org.uberfire.java.nio.fs.jgit.util.commands.Clone$CloneException: Error cloning origin <{PAT}@{server}.visualstudio.com:/{organization}/{project}/_git/{repository}>.
... 101 more
...
Caused by: org.eclipse.jgit.errors.TransportException: {PAT}@{server}.visualstudio.com:/{organization}/{project}/_git/{repository} : Connection timed out: connect
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:181)
... 104 more
Caused by: com.jcraft.jsch.JSchException: java.net.ConnectException: Connection timed out: connect
...
org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:137)
... 111 more
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)
...
at com.jcraft.jsch.Util.createSocket(Util.java:343)
... 113 more
并
{PAT} @ {server}:/ {organization} / {project} / _ git / {repository}我几乎立即获得了
Caused by: org.eclipse.jgit.errors.TransportException: {PAT}@{server}:/{org}/{project}/_git/{repository} : remote hung up unexpectedly
...
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:243)
... 104 more
Caused by: java.lang.NullPointerException
at java.lang.String.(String.java:166)
at org.eclipse.jgit.transport.CredentialsProviderUserInfo.promptPassword(CredentialsProviderUserInfo.java:121)
at com.jcraft.jsch.UserAuthPassword.start(UserAuthPassword.java:57)
将我的用户名和密码放在相应的块中无济于事(PAT已涵盖其中)。对要使用的正确URL有任何想法吗?而且,出于好奇,为什么Azure DevOps上的git似乎与其Visual Studio服务器绑定在一起?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)