Teamcity 7.0 Git VCS configuration error when added to build configuration

Hello - I have a VCS configuration for git repository that uses the gerrit server at a non standard port. When I say test connection, all is well. I get a success message.

However, when I add the vcs root to the build configuration, i get "Test connection failed in SDA :: SDS Integration Build. Connection test failed: com.jcraft.jsch.JSchException: Auth fail"

I use the same settings in both the cases. Here is my configuration

gerrit.png




I also tried the git clone via git bash on the buildserver and buildagent and both works.
Here is the logs from the server

jetbrains.buildServer.vcs.VcsException: Connection test failed: com.jcraft.jsch.JSchException: Auth fail




Caused by: org.eclipse.jgit.errors.TransportException: SDA@sdagerrit:29418/SDS.git: Auth fail
     at org.eclipse.jgit.transport.SshTransport.initSession(SshTransport.java:141)
     at org.eclipse.jgit.transport.TransportGitSsh$JschConnection.exec(TransportGitSsh.java:183)
     at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:361)
     at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:104)
     at jetbrains.buildServer.buildTriggers.vcs.git.TestConnectionCommand.checkFetchConnection(TestConnectionCommand.java:87)
     at jetbrains.buildServer.buildTriggers.vcs.git.TestConnectionCommand.testConnection(TestConnectionCommand.java:65)
     at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.testConnection(GitVcsSupport.java:730)
     ... 38 more
Caused by: com.jcraft.jsch.JSchException: Auth fail
     at com.jcraft.jsch.Session.connect(Session.java:461)
     at org.eclipse.jgit.transport.SshTransport.initSession(SshTransport.java:134)
     ... 44 more
 
[2012-04-02 16:39:04,715]   WARN [ecutor 5 {id=4}] -      jetbrains.buildServer.VCS - Error while loading current vcs revision for root 'sdagerrit:29418/SDS.git#develop {instance id=4, parent id=2}', id=4: Retrieving current version failed: com.jcraft.jsch.JSchException: Auth fail 
[2012-04-02 16:40:04,806]   WARN [ecutor 3 {id=4}] -      jetbrains.buildServer.VCS - Error while loading current vcs revision for root 'sdagerrit:29418/SDS.git#develop {instance id=4, parent id=2}', id=4: Retrieving current version failed: com.jcraft.jsch.JSchException: Auth fail 
[2012-04-02 16:41:04,897]   WARN [ecutor 1 {id=4}] -      jetbrains.buildServer.VCS - Error while loading current vcs revision for root 'sdagerrit:29418/SDS.git#develop {instance id=4, parent id=2}', id=4: Retrieving current version failed: com.jcraft.jsch.JSchException: Auth fail 







Any help is appreciated.




Thanks,
Anush

1 comment
Comment actions Permalink

Okay - I figured out. I had to put ssh:// infront of the fetch url. That did the trick.

0

Please sign in to leave a comment.