Globally increment the Last Build Label across multiple CruiseControl.NET projects
We use CruiseControl.NET to automate our builds and keep track of the Last Build Number. However, this number resets to one for newly created CC.NET projects. We w开发者_如何学运维ould like the Last Build Number sequence to continue for branched projects (e.g., patches to existing releases).
Is there a way to globally increment the Last Build Label across multiple CruiseControl.NET projects?
Th build number is kept in the project's state file. If you branch, take the build number from the original project's state file and put it into the one of the branch project (or copy the state file and make the necessary edits like file name, project name etc.). Since the state files are XML this should be easy enough to do programmatically if your branch process is script-based.
精彩评论