How can I build CC.NET for a specific hg tag (Mercurial)?

I am trying to use tags in cc.net for release management. When I have a build assembly for development, I have a tag with the keyword "release". Now I would like the project creation project to be used using the same repository tag for the assembly.

Since the "release" tag will be resolved to the latest version, it must build the repository exactly in the same place as the development assembly.

Here is what I use for a 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>
+3
source share
1 answer

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

//pdesql/SoftwareDevelopment/Repository/PBJ#TagName

You can learn more about this by typing hg help urls

: , , . Mercurial build 1.7.3 ( , ). .

, : -)

+2

Source: https://habr.com/ru/post/1791586/


All Articles