Error integrating with Kiln (Mercurial and named branches)

I am trying to use TeamCity to build one of our Kiln-hosted mercurial repositories. Unfortunately, it doesn't appear to be working.
Here's what I tried:

Pull changes from:
Branch name: OurBranchName

The "Test Connection" works fine, but then when I go to the project page, I got this error:

Unable to find current version for the branch: OurBranchName

Stack trace:
jetbrains.buildServer.vcs.VcsException: Unable to find current version for the branch: YNABAIR/Flex3.5
at jetbrains.buildServer.buildTriggers.vcs.mercurial.MercurialVcsSupport.getCurrentVersion(
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.getCurrentVersion(
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.getVersionsForAllRoots(
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChanges(
at jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager.loadChanges(
at jetbrains.buildServer.serverSide.impl.VcsModificationChecker$
at java.util.concurrent.Executors$ Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$ Source)
at Source)

So, based on the advice of this thread, I changed the branch name to be "MercurialRepo"

Well, that worked, but now there is no place for me to specify which of the branches I want TeamCity to build. Without this ability, we're dead in the water since we don't want to build from our default branch. We can't build the code we'd like to...Any advice or comments would be greatly appreciated!

1 comment
Comment actions Permalink

My sincere apologies. Looks like I jumped the gun. I misnamed my branch name in my configuration, so sure enough, TeamCity was right: It couldn't get the version of the branch I gave it! When my Google search turned up someone with the exact same problem, I missed the obvious solution, which was making sure my configuration was right!


Please sign in to leave a comment.