Thanks too much.
 It works to use variable value instead of variable name. 
 There are too much things to learn.
 
 

在2008-09-20,"Tim Rayment" <[EMAIL PROTECTED]> 写道:


CruiseControl should set the CCNetLabel environment variable for you 
automatically.

Remove the environment element from your exec task.

In your a.bat file create the folder using %CCNetLabel% instead of %Label%.

 

Kind regards,

 

Tim

 

From:[email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin 
Sun
Sent: 20 September 2008 06:53
To:[email protected]
Subject: [ccnet-user] Re: How do I retrieve the value of 
LastSuccessfulIntegrationLabel in a batch file?

 

I tried but I failed.

 

The following is my config:

 

<cruisecontrol>
  <project name="Aaa">
    <artifactDirectory>D:\artifactDirectory</artifactDirectory>
    <sourcecontrol type="nullSourceControl" />
    <tasks>
     <exec>
    
<executable>D:\Software\CruiseControl.NET-1.4.0.3524\server\a.bat</executable>
    <successExitCodes>0,1,3,5</successExitCodes>
    <environment>

         <variable name="Label" value="${CCNetLabel}"/>
    </environment>
    <buildTimeoutSeconds>100</buildTimeoutSeconds>
   </exec>
    </tasks>
    <publishers>
 <xmllogger />
    </publishers>
  </project>
</cruisecontrol>

 

In the batch file a.bat, I create a folder using %Label%, but the result is 
that a folder named "${CCNetLabel}" is created. I expected result is that the 
folder  named "3"or"4"is created.

 

Where is the errror?

 

Thanks.

 

Kevin

 

 

 

 

 

 

在2008-09-19,rdbossjr <[EMAIL PROTECTED]> 写道:
>?
>Use the executable task.? CCNet automatically gives that task several
>environment variable.? one of those variables is
>CCNetLastIntegrationStatus.? Here is a link tot eh docs:
>http://confluence.public.thoughtworks.org/display/CCNET/Executable+Task
>?
>?
>On Sep 18, 9:32?pm, Kevin 

 

[广告] 买房不必东奔西走,上房老大,看"二手房"网上房展会

Reply via email to