Git branch remote run triggers fails with little info
As I understand the docs, I've got a git branch trigger set up properly. But the personal builds do not launch and I find this error in teamcity-remote-run.log:
[2011-09-13 12:26:16,009] ERROR [ranch Trigger 1] - emoteRunOnBranchTriggerService - Error while triggering a personal build on branch for buildType 'Fpweb.net :: CI - Master {id=bt8}': List remote refs failed: org.eclipse.jgit.errors.TransportException: git@github.com:Fpweb/Fpweb.net.git: connection failed
I'm not sure how to troubleshoot this further. The vcs root works fine otherwise. Where should I be looking for further details?
Please sign in to leave a comment.
Hi,
could you please enable 'debug-vcs' logging preset at 'Administration > Server Configuration > Diagnostics' and provide contents of teamcity-vcs.log?
I've attached the log you asked for, and also some screen shots showing my configuration. The branch is called josh-master-branch, it exists on github, and the trigger looks for josh*.
Thanks,
Josh
Attachment(s):
teamcity-vcs.log.zip
BranchRemoteRunTrigger.png
Branch.png
I believed I've solved the problem. The trigger needed to look for refs/heads/josh*, not just josh*.
Yes, you should specify a full branch name in the pattern, but wrong branch name should not cause a connection error though.
Also you might use 'refs/josh*' as a pattern and push your personal branches not to the refs/heads/branch_name, but to
refs/branch_name. In this case other developers will not normally see your branches.