From: Lee T. <Lee...@am...> - 2008-10-14 14:09:51
|
I've used the following and it works. Since we use reusable code, we have a common (base) xml containing the following plugin, invoking a command procedure and passing a couple of params: <plugin name="execute_copylog_package" classname="net.sourceforge.cruisecontrol.publishers.ExecutePublisher" command="D:\xxx\xxx\blah.bat ${project.name} package 1>nul 2>nul"> </plugin> And some of our project-specific xml files contain the following: <publishers> etc ... ... ... <execute_copylog_package/> etc ... ... ... </publishers> For some reason, not funneling stdout and stderr to null will cause a problem if the procedure indeed uses either. May be a restriction of "execute", but I could not see that in the documentation. Lee Thornton Software Configuration Management / Release Engineering / Environments Broadband Communications & Media Division - DirecTV Infrastructure +1 704.561.4352 (desk) +1 704.561.4149 (fax) AMDOCS > CUSTOMER EXPERIENCE SYSTEMS INNOVATION Did you know...? As the industry's first customer experience system, Amdocs CES 7.5 <http://amdocs.com/cesportfolio> helps service providers differentiate brand, accelerate growth, integrate effectively and assure success so they can transform with lower risk. ________________________________ From: Durbha, Praveen (GE Healthcare) [mailto:Pra...@ge...] Sent: Monday, October 13, 2008 14:47 PM To: cru...@li... Subject: [Cruisecontrol-user] Executing a BAT file in Cruisecontrol using<ant> Hi, I am trying to execute a BAT file using the CruiseControl configuration element <ant>. Here's my script and it doesn't work..I have ANT installed in C:\ant. Does anybody know how the <ant> configuration element is used in Cruisecontrol. Thanks <cruisecontrol> <property name="deploy.bat.path" value="${base.dir}\cbs_hlp\deploy.bat"/> <schedule> <maven2 mvnscript="${maven.bat.path}" pomfile="${base.dir}\cbs_hlp\software\${project.name}\pom.xml" goal="clean|package site install" flags="-U -cpu -Dcruisecontrol.buildType=${project.name} -Dmaven.test.failure.ignore=true" activateprofiles="dashboard"/> <ant anthome= "C:\ant" target="${deploy.bat.path}"/> </schedule> </cruisecontrol> This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp |