I recently installed Jenkins on my local Windows 7 dev environment.
I configured Jenkins for my local Java and Ant installations and I set up my first project.
I used instruction from http://jenkins-php.org/ to execute certain PHP tools (PHP CodeSniffer, PHP Doc etc.) at build specified in build.xml.
Pear was correctly configured before installation of the PHP tool packages, so all package.bat files (in the Pear directory) of the packages do have the correct PHP bin path. Also, a Windows environment variable PHPBIN is set, pointing to the php bin location - the php bin path is also on the PATH variable.
The Pear path (containing all installation of the PHP tools) is also included in the PATH variable.
When I manually start the build I get error messages that it cannot run certain programs (--> the PHP tools), although they are correctly installed (through Pear) and are executable through a command prompt...
Here's the error output:
Started by user anonymous
Updating file:///D://SVN/MyProjectRepository/trunk/public_html
At revision 38
[workspace] $ cmd.exe /C '"ant.bat -file build.xml && exit %%ERRORLEVEL%%"'
Buildfile: C:\Servers\Jenkins\jobs\MyProject\workspace\build.xml
clean:
[delete] Deleting directory C:\Servers\Jenkins\jobs\MyProject\workspace\build\api
[delete] Deleting directory C:\Servers\Jenkins\jobs\MyProject\workspace\build\code-browser
[delete] Deleting directory C:\Servers\Jenkins\jobs\MyProject\workspace\build\coverage
[delete] Deleting directory C:\Servers\Jenkins\jobs\MyProject\workspace\build\logs
[delete] Deleting directory C:\Servers\Jenkins\jobs\MyProject\workspace\build\pdepend
[mkdir] Created dir: C:\Servers\Jenkins\jobs\MyProject\workspace\build\api
[mkdir] Created dir: C:\Servers\Jenkins\jobs\MyProject\workspace\build\code-browser
[mkdir] Created dir: C:\Servers\Jenkins\jobs\MyProject\workspace\build\coverage
[mkdir] Created dir: C:\Servers\Jenkins\jobs\MyProject\workspace\build\logs
[mkdir] Created dir: C:\Servers\Jenkins\jobs\MyProject\workspace\build\pdepend
parallelTasks:
pdepend:
phpcpd:
phpdoc:
phpcs:
phploc:
BUILD FAILED
C:\Servers\Jenkins\jobs\MyProject\workspace\build.xml:29:
The following error occurred while executing this line:
C:\Servers\Jenkins\jobs\MyProject\workspace\build.xml:42: Execute failed: java.io.IOException: Cannot run program "pdepend": CreateProcess error=2, The system cannot find the file specified
The following error occurred while executing this line:
C:\Servers\Jenkins\jobs\MyProject\workspace\build.xml:62: Execute failed: java.io.IOException: Cannot run program "phpcpd": CreateProcess error=2, The system cannot find the file specified
The following error occurred while executing this line:
C:\Servers\Jenkins\jobs\MyProject\workspace\build.xml:80: Execute failed: java.io.IOException: Cannot run program "phpcs": CreateProcess error=2, The system cannot find the file specified
The following error occurred while executing this line:
C:\Servers\Jenkins\jobs\MyProject\workspace\build.xml:93: Execute failed: java.io.IOException: Cannot run program "phpdoc": CreateProcess error=2, The system cannot find the file specified
The following error occurred while executing this line:
C:\Servers\Jenkins\jobs\MyProject\workspace\build.xml:72: Execute failed: java.io.IOException: Cannot run program "phploc": CreateProcess error=2, The system cannot find the file specified
Total time: 0 seconds
Build step 'Invoke Ant' marked build as failure
[CHECKSTYLE] Skipping publisher since build result is FAILURE
[PMD] Skipping publisher since build result is FAILURE
[DRY] Skipping publisher since build result is FAILURE
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at PROJECT level C:\Servers\Jenkins\jobs\MyProject\workspace\build/code-browser to C:\Servers\Jenkins\jobs\MyProject\htmlreports\Code_Browser
ERROR: Directory 'C:\Servers\Jenkins\jobs\MyProject\workspace\build/code-browser' exists but failed copying to 'C:\Servers\Jenkins\jobs\MyProject\htmlreports\Code_Browser'.
Publishing Javadoc
[JDepend] JDepend plugin is ready
[JDepend] Couldn't generate JDepend file at 'build/logs/jdepend.xml'java.io.FileNotFoundException: C:\Servers\Jenkins\jobs\MyProject\workspace\build\logs\jdepend.xml (The system cannot find the file specified)
Sending e-mails to: test@localhost
Finished: FAILURE
Can anybody point me in the right direction what the problem is?