Skip to content

CruiseControl.NET: Mercurial configuration

December 7, 2010

Let’s see CruiseControl.NET configuration for Mercurial repository.

Firstly be sure to install Mercurial on your build server.

Add the following tags into your cc.net configuration file (e.g. for Project1):

<project name="Project1" >
<workingDirectory>C:\project1\working</workingDirectory>
<artifactDirectory>C:\project1\artifacts</artifactDirectory>

<triggers>
<intervalTrigger name="continuous" seconds="3600" />
<!--Repo check for new updates trigger. e.g. ones in 1 hour-->
</triggers>

<sourcecontrol type="hg"><!--Defining Mercurial repo-->
<repo>https://hg.projects.net/hg/project1/</repo><!-- Repo path-->
<workingDirectory>C:\project1\working</workingDirectory>
</sourcecontrol>
</project>

If there is repository authorization issue (to get updates you need to enter authorization credentials into popup window) . To solve it you need to add hgrc file (just file name) into .hg folder (m.b. you will need to create it too) that is located in project working directory (in our case c:/project1/working). Add the following strings into the file:

[paths]
default = https://hg.projects.net/hg/project1/
[auth]
project.prefix = https://hg.projects.net/hg/project1/
project.username = username
project.password = password

After this CruiseControl.NET is ready to work with Mercurial repository

Advertisements
Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: