How do you use build labels in publishers in cruisecontrol?

Posted by Omnifarious on Stack Overflow See other posts from Stack Overflow or by Omnifarious
Published on 2010-11-24T03:53:18Z Indexed on 2010/12/25 3:54 UTC
Read the original article Hit count: 193

I have this section in my CruiseControl config.xml file:

<publishers>
   <onsuccess>
        <artifactspublisher dest="artifacts/${project.name}" file="projects/${project.name}/fred"/>
        <execute command="hg -R hg-succeeded/${project.name} pull"/>
        <execute command="hg -R hg-succeeded/${project.name} tag -l build-${label} -r tip"/>
    </onsuccess>
</publishers>

I'm getting tags that look like build-${label}. The ${label} part isn't being replaced by the build label like I expect. I'm expecting something like build.1 to show up in place of ${label}. How do I make this happen?

I do have the default labelincrementer configured with a <labelincrementer /> tag in my project.

Also, the CruiseControl documentation is absolutely awful. Is there better documentation anywhere?

© Stack Overflow or respective owner

Related posts about mercurial

Related posts about build-process