[Teamcity][Git][VCSTrigger] Crash with VCS Trigger
Hello there,
I have an issue when trying to trigger a build upon vcs commit/submit. When I have pushed to my git server (git-lab), I have checked out the vcs server logs and noticed an exception (Below is the error). I am not entirely sure if this is the issue that is blocking me, but I assume so. Do you know how I can fix this?
Some other useful information:
Teamcity version : 2017.1 (build 46533)
Java version: 1.8.0_101-b13
Also I have changed the ssh url from git to this format (git@(git-lab-server):(group)/(repo).git) to keep my company information private.
[2017-04-13 10:18:46,874] WARN [ical executor 5] - ggers.vcs.git.FetchCommandImpl - Error output produced by git fetch:
Error while pruning removed branches: git@(git-lab-server):(group)/(repo).git: Session.connect: java.net.SocketException: Connection reset
org.eclipse.jgit.errors.TransportException: git@(git-lab-server):(group)/(repo).git: Session.connect: java.net.SocketException: Connection reset
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:159)
at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:137)
at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:262)
at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:161)
at jetbrains.buildServer.buildTriggers.vcs.git.GitServerUtil.pruneRemovedBranches(GitServerUtil.java:348)
at jetbrains.buildServer.buildTriggers.vcs.git.GitServerUtil.pruneRemovedBranches(GitServerUtil.java:332)
at jetbrains.buildServer.buildTriggers.vcs.git.Fetcher.pruneRemovedBranches(Fetcher.java:128)
at jetbrains.buildServer.buildTriggers.vcs.git.Fetcher.fetch(Fetcher.java:107)
at jetbrains.buildServer.buildTriggers.vcs.git.Fetcher.main(Fetcher.java:64)
Caused by: com.jcraft.jsch.JSchException: Session.connect: java.net.SocketException: Connection reset
at com.jcraft.jsch.Session.connect(Session.java:558)
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116)
... 8 more
Please sign in to leave a comment.
Hello there,
I wanted to update this issue. Concerning it, I have found out the issue that causes this error and fails to trigger a build in teamcity. It is because of the trigger rules. If I have any trigger rules, this will fail. I will enter a bug for this issue.
An Issue has already been made and fixed.
https://youtrack.jetbrains.com/issue/TW-38363