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.
views:
881answers:
2
                +1 
                A: 
                
                
              
            sure it is in the state file. Here is how I do it in PowerShell
$xml = [xml](gc $statefile)
[string]$buildnum =$xml.IntegrationResult.Label
                  Alex
                   2009-04-10 17:15:27
                
              
                +5 
                A: 
                
                
              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
                  Igor Brejc
                   2009-04-10 17:51:34
                
              actually Status just returns success/fail not the label as the OP asks for
                  Alex
                   2009-04-14 18:23:15
                In think you meant CCNetLabel, the environment variable way
                  Alex
                   2009-04-14 18:24:15
                Yes, that's what I meant
                  Igor Brejc
                   2009-04-14 18:52:43