R – Cruisecontrol.net Build Number on a Force Build

cruisecontrol.net

Is it possible to have ccnet don't increment the build number if the build is actually a forcebuild?????????? In better words, Is it possible to have cruisecontrol keep it's label number if it is rcovering from an exception(sourcecontrol exception)??? Basically if the forcebuild is happening to recover from an exception, I don't want my build number to change.

Best Answer

It depends - why are you forcing the build?

If you need some kind of interval trigger, then just set it up and don't use forced build.

If you are forcing the build because the previous one has failed, then just set incrementOnFailure to false (which is the default).

If you are using Assembly Version Labeller then you can explicitly set build revision - unfortunately this is not possible with other labellers.

Related Topic