CC.NET and LastChangeLabeller
Moderator: SourceGear
CC.NET and LastChangeLabeller
I am using the latest versions of vault and CC.NET (1.3.0.2711). I would like to label my builds, and of course the assemblies go with them, using the folder version number from vault.
There is a new "LastChangeLabeller" in CC.NET that seems to be for this purpose, but I believe the Vault Source Control block would need to be updated to make this possible. Is this something that could be done?
Brian
There is a new "LastChangeLabeller" in CC.NET that seems to be for this purpose, but I believe the Vault Source Control block would need to be updated to make this possible. Is this something that could be done?
Brian
I looked into it a bit more to maybe speed the process a bit :)...
It looks like the "LastChangeNumber" the labeller uses comes from the highest ChangeNumber from the Modifications reported from the source control block.
As far as I can tell there are two reasons this does not work with Vault:
1) The ChangeNumber for each Modification is the "txid" reported by Vault, not the folder version.
2) If there were no modifications (i.e. a ForceBuild), then it won't find a ChangeNumber at all, and the label becomes 1.0.0.unknown.
Thanks,
Brian
It looks like the "LastChangeNumber" the labeller uses comes from the highest ChangeNumber from the Modifications reported from the source control block.
As far as I can tell there are two reasons this does not work with Vault:
1) The ChangeNumber for each Modification is the "txid" reported by Vault, not the folder version.
2) If there were no modifications (i.e. a ForceBuild), then it won't find a ChangeNumber at all, and the label becomes 1.0.0.unknown.
Thanks,
Brian
-
- Posts: 27
- Joined: Wed Oct 20, 2004 2:19 am
I love this idea also
It would be great to have this. Then I could base my build numbers on Vault rather then the build numbers generated from ccnet.
-
- Posts: 27
- Joined: Wed Oct 20, 2004 2:19 am
Re: CC.NET and LastChangeLabeller
I've just implemented a CCNet Labeller plugin to do this. You can find out about it at http://blog.functionalfun.net/2008/09/h ... uilds.html.
Samuel Jack
Paragon Simulation
Paragon Simulation