The CruiseControl.NET operation flow, documented in the Operation flow of CCNet FAQ, where the label is generated first makes some sense for a centralized VCS but not so much for a DVCS. With a DVCS, it would be better to generate the label after getting the source because the source itself might be needed for the label (e.g., the .hgtags
file in Mercurial or other local source files used to compute version and build numbers).
Has anyone figured out a way to run the CCNet labeller after getting the source?
We don't use the Labeller in CC.NET, but nevertheless, our approach might work for you as well:
Your real project then includes the Labeller task, and since the Mercurial checkout was done before, the Labeller should generate the "right" label.
Kind regards Frank
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With