gpt4 book ai didi

Teamcity - bitbucket 的间歇性传输异常

转载 作者:行者123 更新时间:2023-12-04 05:26:03 25 4
gpt4 key购买 nike

我们使用的是 Teamcity 8.0.1(内部版本 27435)。有 this完全相同的问题。尝试连接到 bitbucket 存储库并间歇性地收到以下异常:

Failed to collect changes, error: List remote refs failed:
org.eclipse.jgit.errors.TransportException:
https://username@bitbucket.org/myproject/project.git: -1 null

在代理服务器后面,我已将 -Dhttps.proxyHost=XXX -Dhttps.proxyPort=1234 添加到 TEAMCITY_SERVER_OPTS 环境变量中。那没有用。有人提到尝试在另一个 forum 上升级到 Java7但这也无济于事。

不幸的是,由于公司网络规则,我们无法使用 SSH 到 bitbucket。

有人解决了这个问题或有建议吗?谢谢您的帮助!

最佳答案

我不确定 Teamcity/Jgit 中是否存在错误,但 Bitbucket 的 HTTPS 无法正常工作。解决方案 here是使用 SSH,但这不是我的选择。

我现在的解决方案是在本地克隆 repo (git clone --mirror) 并在 bash 中定期更新它 (git remote update)。然后只需将 TeamCity 指向该本地 .git 文件夹。

关于Teamcity - bitbucket 的间歇性传输异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17681513/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com