TFS 2018 Git vcs with "Prefere to checkout files on agent" VCS Checkout mode using git v 2.15.xx client throws exit code: 128 stderr: fatal: Authentication failed for <git repository>
Hi everybody,
when we did switch out git repositories hosting from gitea to tfs unsing git vcs with "Prefere to checkout files on agent" checkout mode we did recieve following error on checkout before a build:
exit code: 128
stderr: fatal: Authentication failed for '<path of our repository>'.
When we did switch to the server checkout mode everything was ok.
When we did switch from tfs back to gitea everything was ok even using "Checkout on agent".
After some research we did discover, that the problem with checkout on agent did disappear when we switched to git client version 2.16.0 and higher on agent.
This behaviour could be reproduced on multiple systems.
It would be nice to have some remark about this behaviour in the appropriate documentation part, as otherwise the behaviour during checkout from vcs is not transparent and understandable,
Regards
Alexander
Please sign in to leave a comment.
Hi Alexander,
Server and agents can use different git implementations for connecting to remote servers. This depends on a number of factors, ranging from teamcity version to your own server properties, to whether the tools are actually installed on the system. Due to this, it's hard to give specific advice for general scenarios, as issues might be to a large number of different reasons which we usually need to investigate independently. If we find common reasons to different problems, we then usually fix those or document requirements when available.
Furthermore, in order to document or find whether it's a current issue or an old, fixed bug, it's usually helpful to provide which version of teamcity you are running, a more detalied description of the error (include extra lines above and under the one with the error message, to understand its context), etc.
If you have any further issue or request, please don't hesitate to comment further.