Every time I try to run a build, I get a bunch of lines like this:

/Users/Shared/Jenkins/Home/jobs/dghhtreew/workspace/build.xml:28:
> The following error occurred while executing this line:
> /Users/Shared/Jenkins/Home/jobs/dghhtreew/workspace/build.xml:39: Execute 
> failed: java.io.IOException: Cannot run program "pdepend": error=2, No such 
> file or directory


Here's the relevant part from my build.xml, which was auto-generated by PHP 
Project Wizard:

...
>  <target name="parallelTasks" description="Run the pdepend, phpmd, phpcpd, 
> phpcs, phpdoc and phploc tasks in parallel using a maximum of 2 threads.">
>   <parallel threadCount="2">
>    <sequential>
>     <antcall target="pdepend"/>
>     <antcall target="phpmd"/>
>    </sequential>
>    <antcall target="phpcpd"/>
>    <antcall target="phpcs"/>
>    <antcall target="phpdoc"/>
>    <antcall target="phploc"/>
>   </parallel>
>  </target>
>  <target name="pdepend" description="Generate jdepend.xml and software 
> metrics charts using PHP_Depend">
>   <exec executable="pdepend">
>    <arg line="--jdepend-xml=${basedir}/build/logs/jdepend.xml
>               --jdepend-chart=${basedir}/build/pdepend/dependencies.svg
>               
> --overview-pyramid=${basedir}/build/pdepend/overview-pyramid.svg
>               ${source}" />
>   </exec>
>  </target>
> ... 


Apparently the Jenkins user cannot find these commands or something. When I 
log in via the terminal to Jenkins like this:

sudo -s -H -u jenkins 


and try pdepend it works as expected. But for some reason it won't work 
when executed from the Jenkins server. I tried setting absolute paths in 
the executable line, but I just got the same result. I haven't messed with 
the install or anything, I have the latest version (1.488) of Jenkins via 
the mac installer.

Why can't jenkins do anything??

Reply via email to