2010-04-23 6 views
1

Je reçois l'erreur de suivi mentionnée ci-dessous. Aide est très nécessaire pour cela ... gentiment passer par les erreurs.Comment configurer hudson CI avec PHPunit et comment lancer phpunit en utilisant hudson?

commencé par un changement SCM

Updating https://suppliesguys.unfuddle.com/svn/suppliesguys_frontend2/Frontend-Texity/src 
U   sites\all\modules\print\print_pdf\print_pdf.pages.inc 
At revision 1134 
[workspace] $ sh -xe C:\WINDOWS\TEMP\hudson6292587174545072503.sh 
The system cannot find the file specified 
FATAL: command execution failed 
java.io.IOException: Cannot run program "sh" (in directory "E:\Projects\Hudson\.hudson\jobs\TSG\workspace"): CreateProcess error=2, The system cannot find the file specified 
at java.lang.ProcessBuilder.start(Unknown Source) 
at hudson.Proc$LocalProc.<init>(Proc.java:149) 
at hudson.Proc$LocalProc.<init>(Proc.java:121) 
at hudson.Launcher$LocalLauncher.launch(Launcher.java:636) 
at hudson.Launcher$ProcStarter.start(Launcher.java:271) 
at hudson.Launcher$ProcStarter.join(Launcher.java:278) 
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:83) 
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:58) 
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:584) 
at hudson.model.Build$RunnerImpl.build(Build.java:174) 
at hudson.model.Build$RunnerImpl.doRun(Build.java:138) 
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416) 
at hudson.model.Run.run(Run.java:1244) 
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 
at hudson.model.ResourceController.execute(ResourceController.java:88) 
at hudson.model.Executor.run(Executor.java:122) 
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified 
at java.lang.ProcessImpl.create(Native Method) 
at java.lang.ProcessImpl.<init>(Unknown Source) 
at java.lang.ProcessImpl.start(Unknown Source) 
... 17 more 
Publishing Javadoc 
Publishing Clover coverage report... 
No Clover report will be published due to a Build Failure 
[xUnit] Starting to record. 
[xUnit] [PHPUnit] - Use the embedded style sheet. 
[xUnit] [ERROR] - No test report file(s) were found with the pattern 'build/logs/phpunit.xml' relative to 'E:\Projects\Hudson\.hudson\jobs\TSG\workspace' for the testing framework 'PHPUnit'. Did you enter a pattern relative to the correct directory? Did you generate the result report(s) for 'PHPUnit'? 
[xUnit] Stopping recording. 
Finished: FAILURE 

Répondre

1

On dirait que vous avez quelques problèmes:

FATAL: command execution failed java.io.IOException: Cannot run program "sh" (in directory "E:\Projects\Hudson.hudson\jobs\TSG\workspace"): 

L'utilisateur qui exécute le travail d'Hudson ne pas la commande « sh » dans sa chemin, de sorte qu'il ne peut pas exécuter des scripts shell. Ajouter/bin au $ PATH de l'utilisateur Hudson devrait corriger cela.

[xUnit] [ERROR] - No test report file(s) were found with the pattern 'build/logs/phpunit.xml' relative to 'E:\Projects\Hudson.hudson\jobs\TSG\workspace' for the testing framework 'PHPUnit'. 

Ceci est probablement dû à l'erreur précédente; la construction n'est tout simplement pas assez loin pour lancer les tests PHPUnit.

1

Il semble que vous utilisiez l'étape de compilation "Exécuter le shell" sur un système Windows au lieu de l'étape de compilation "Exécuter la commande par lots Windows". Windows n'a normalement pas de 'sh', donc le premier ne fonctionnera pas.

0

'sh' est pour les implémentations linux. Les fichiers '.exe' et 'bat' sont utilisés dans Windows. Essayez-vous de configurer et d'exécuter Hudson sur Windows ou Linux?