ビルドを実行しようとするたびに、次のような一連の行が表示されます。
/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
これは、PHP Project Wizard によって自動生成された私の build.xml の関連部分です。
...
<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>
...
どうやら、Jenkins ユーザーはこれらのコマンドか何かを見つけることができません。ターミナル経由で Jenkins にログインすると、次のようになります。
sudo -s -H -u jenkins
期待どおりに動作することを試しpdepend
てください。しかし、何らかの理由で、Jenkins サーバーから実行すると機能しません。実行可能行に絶対パスを設定しようとしましたが、同じ結果が得られました。インストールなどをいじっていません。Macインストーラーを介してJenkinsの最新バージョン(1.488)を持っています。
なぜジェンキンスは何もできないのですか??