Using SSH with Mercurial
Completed
There are several tutorials online explaining how to use SSH authentication for Mercurial repositories in TeamCity. However, they all are outdated, and apparently do not work anymore. Is there any official documentation on this issue? I am using SSH access for my Hg repos without problems, but can't configure Teamcity, unfortunately. Regardless of what I do, all I get is hg process stuck forever, and no logs. I would greatly appreciate any pointers.
Please sign in to leave a comment.
Hi Maxim,
Mercurial over SSH should work without any major issue, just put the ssh url into the url for the repository. If the process is getting stuck, it would be useful to know when and where it happens, whether testing the connection, on the server while checking for changes, or on the agents when pulling the changes for a build. I'd then suggest to enable debug-vcs under Administration - Diagnostics if the issue happens on the server (which I understand is where it happens from your description), or enable debug-vcs on the agent: https://www.jetbrains.com/help/teamcity/viewing-build-agent-logs.html#ViewingBuildAgentLogs-VCSDebugLogging,
hopefully debug logs will contain some more information. If you need assistance going through them, please feel free to send them to us via the "Submit a request" button on top of this page or opening a request in our issue tracker.