I am developing an automatic deployment script for a Coldfusion project.
Tool: cruisecontrol.net, ant script Source Control: perforce
Running the following ant script with cruisecontrol.net. I get this error: "Cannot start program" p4 ": Error CreateProcess = 2, the system cannot find the file specified"
But its working fine from the command line:
ant -f deployment.xml
contents of deployment.xml file:
<echo message="Perforce code base Get Latest revision Started"/>
<p4sync port="${p4.server}"
client="${p4.workspace}"
globalopts="${p4.password}"
user="${p4.username}"
view="${p4.branch}"/>
<echo message="Perforce code base Get Latest revision completed"/>
ccnet.config:
<project name="TestMGDeployment">
<triggers>
<intervalTrigger seconds="300" />
</triggers>
<tasks>
<exec executable="C:\Apache\apache-ant-1.8.1\bin\ant.bat">
<baseDirectory>C:\cruisecontrol\Projects</baseDirectory>
<buildArgs>-f deployment.xml</buildArgs>
</exec>
</tasks>
</project>
Thanks Nagarajan
source
share