Question

I am trying to use tags in cc.net to control release build. When I have the build machine build for development, I have it tag with a keyword - 'release'. Now I would like to have the production project build using the same repository tag to build.

Since the tag 'release' would resolve to the most recent version, it should build the repository at exactly the same place as the development build.

Here is what I am using for the development project:

<sourcecontrol type="hg">
    <repo>//pdesql/SoftwareDevelopment/Repository/PBJ</repo>
    <workingDirectory>C:\build\pbj-dev-deploy</workingDirectory>
    <tagCommitMessage>release</tagCommitMessage>
    <tagOnSuccess>true</tagOnSuccess>
</sourcecontrol>
Was it helpful?

Solution

You can do this by adding a fragment to the end of the repo address:

//pdesql/SoftwareDevelopment/Repository/PBJ#TagName

You can read more about this by typing hg help urls

Note: his appears to be broken in the latest version. For now, I've had to downgrade Mercurial on our buildserver to 1.7.3 (one I know it works in). I've filed a bug here.

I also posted a little more on my blog about how I'm using this :-)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top