TeamCity with bitbucket and mercurial

Hello everyone,
I have teamcity 7.1.4 installed, and I'd like to label after a build a project stored in bitbucket repository using mercurial. I get this exception:

jetbrains.buildServer.vcs.VcsException: '"D:\Program Files\TortoiseHg\hg" --config ui.interactive=False push --config auth.tc.prefix=* --config auth.tc.username=...  --config auth.tc.password=****** --config "auth.tc.schemes=http https" ... command failed. stdout: pushing to https://... stderr: abort: http authorization required at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommandResult.throwVcsException(CommandResult.java:91) at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommandResult.logAndThrowError(CommandResult.java:81) at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommandResult.checkFailure(CommandResult.java:66) at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.CommandUtil.runCommand(CommandUtil.java:34) at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.VcsRootCommand.runCommand(VcsRootCommand.java:32) at jetbrains.buildServer.buildTriggers.vcs.mercurial.command.PushCommand.call(PushCommand.java:51) at jetbrains.buildServer.buildTriggers.vcs.mercurial.MercurialVcsSupport.label(MercurialVcsSupport.java:713) at jetbrains.buildServer.vcs.impl.VcsLabeler.setLabel(VcsLabeler.java:66) at jetbrains.buildServer.vcs.impl.VcsLabeler.access$500(VcsLabeler.java:71) at jetbrains.buildServer.vcs.impl.VcsLabeler$2$1.run(VcsLabeler.java:3) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

Any idea if what I'm trying to do is even possible?

Please sign in to leave a comment.