Cannot start program "p4": CreateProcess = 2 error, the system cannot find the specified file

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:

<!-- Get Latest revision from perforce -->
<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

+3
source share
2 answers

CruiseControl.net, , , , p4 PATH p4sync.

, .

+2

, P4PORT. : [ perforce]: [perforce port].

, P4PORT = perforce.xyz.com: 1666

+2

All Articles