Teamcity - Intermittent TransportException for BitBacket

We are using Teamcity 8.0.1 (build 27435). Having this same problem. Trying to connect to the bitbucket repository and get the following exception with interruptions:

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

For the proxy server, I added -Dhttps.proxyHost = XXX -Dhttps.proxyPort = 1234 to the TEAMCITY_SERVER_OPTS environment variable. This did not work. An attempt was made to upgrade to Java7 in another forum , but that also did not help.

Unfortunately, we cannot use SSH for bitbucket due to company network rules.

Has anyone solved this problem or have any suggestions? Thanks for the help!

+4
source share
1 answer

Not sure if there is a bug in Teamcity / Jgit, but HTTPS for Bitbucket is not working properly. The solution here was to use SSH, but this is not an option for me.

My solution for now is to clone the local repository (git clone --mirror) and periodically update it in bash (git remote update). Then simply point TeamCity to this local .git folder.

+2
source

Source: https://habr.com/ru/post/1491691/


All Articles