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