Reputation: 193
at the moment im versioning my Project with Tortoise and SubWCRev.exe like this:
[assembly: AssemblyVersion("1.3.0.0")]
[assembly: AssemblyFileVersion("1.3.$WCDATE=%y%m$.$WCREV$")]
but i would like to change the BuildNr with a specific number like 12...13...14... so that it looks like 1.3.12.21432 or whatever.
So the question is: is it possibly to add some custom keywords or parameters ? Or are there any other solutions? We are using Jenkins to Build our Projects.
Upvotes: 3
Views: 260
Reputation: 97282
If BuildNr have to be some incrementing number, you can
$WCREV-$
SubWCRev's default keyword with some "base" Revision as zero-point. For builds "on source change" you'll get incrementing revision of WC and incrementing REV-BASE
AssemblyVersion
by hand|additional script and use defined by Jenkins environment variable BUILD_NUMBERUpvotes: 2