PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, September 28, 2022

[FIXED] How can I have CC.NET build to a specific hg (Mercurial) tag?

 September 28, 2022     continuous-deployment, continuous-integration, cruisecontrol.net, mercurial     No comments   

Issue

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>

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 :-)



Answered By - Danny Tuppeny
Answer Checked By - Katrina (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing