Yeah, just to confirm - upgrading TeamCity does nothing... but installing git plugin resolves the issue. Works for TeamCity 9.0.xxx also. gl
Søren Nguyen Boisen
Installing the new TeamCity git plugin did resolve this particular error, but now we sometimes see other failures like "Failed to collect changes, error: List remote refs failed: com.jcraft.jsch.JSchException: Session.connect: java.io.IOException: End of IO Stream Read". Also, one of our builds use git from a shell script to manually perform a fetch and that also sometimes fails.
It seems that this new SSH infrastructure is unstable.
Atlassian should have provided notice that major infrastructure changes were taking place.
Just to confirm installing git plugin resolves the issue on TC 9.0.
Hope you can deal with breaking changes more professionally in future.