R – access the CruiseControl.net build label

continuous integrationcruisecontrol.net

Is there any way I can have access to the CruiseControl.NET's build label number? (Maybe by using a batch file.) Basically, I want to retrieve the value "LastSuccessfulIntegrationLabel" and use in a batch file before building.

Best Answer

Can't you simply use the CCNetLabel environment variable in your batch script (see http://confluence.public.thoughtworks.org/display/CCNET/Executable+Task, at the bottom)?

If you need it before the build, you can set your batch to run as a <prebuild> task: http://confluence.public.thoughtworks.org/display/CCNET/Project+Configuration+Block

Related Topic