Quantcast

Mac: Can't run any parallel tasks

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Mac: Can't run any parallel tasks

Michael Funk
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 | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Mac: Can't run any parallel tasks

krishna chaitanya kurnala
Hello 

Suggest using EnvInject Plugin, you can pass the location of pdepend for the build from job config page, I had a similiar situation for a different problem and fixed it in this way.

Thanks,
Krishna Kurnala

Krishna Chaitanya


On Fri, Nov 2, 2012 at 2:17 PM, Michael Funk <[hidden email]> wrote:
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??

Loading...