I’ve got a build server set up for us running CruiseControl.NET. It pulls our latest code from a Kiln (HG) repository, builds, publishes, and will soon run some unit and integration tests.
Today I created our first branch in one of our projects, and CC.NET immediately broke.
I solved this by specifying the branch our CC.NET should use. Open your config file and add the following to your source control block:
<branch>default</branch>
I wanted it building the default branch, so I put in “default”. Replace it with whatever branch you use.
I was working with Kiln today (as I do every day), and I got this exception . . .
push creates new remote branches
. . . when I was trying to push some changes I had made. Yes, I had created a new branch. Yet it wouldn’t let me push my changes.
Why? Probably because it hates me (if you have a better answer, please comment–I am genuinely interested in knowing).
I got past this by forcing it to push.
Assuming you’re using TortoiseHg, open up your Repository Explorer. In the “Synchronize” menu, check “Force Push” at the bottom. Now when you try to push, it should go through without complaining. After you push, I’d recommend un-checking “Force Push” because it is good for it to warn you about situations you get yourself in to (not having latest, unknowingly creating branches, etc).