Я установил Python 3.3 в Windows. Когда я запускаю носовые тесты из командной строки, указав абсолютный путь к папке тестовых сценариев python, он запускается. Однако, когда я настраиваю оболочку сборки в Jenkins как «путь nosetests/to/tests --with-xunit», сборка завершается ошибкой. Я пытаюсь установить монитор сборки, чтобы увидеть причины сбоя сборки. Оболочка сборки имеет nosetests C:\seltests\RHIS_Tests\ --with-xunit
. Я не устанавливал Postbuild в Nosetests.xml, так как он отклоняет эту запись.
Спасибо. Извините, я добавляю вывод консоли сюда Building in workspace C:\Program Files\Jenkins\jobs\P1\workspace
Updating svn://godwin:3691/SVNRepo at revision '2014-01-02T18:28:06.781 +0530'
U Allows SQL in text fields.html
At revision 3
[workspace] $ sh -xe C:\WINDOWS\TEMP\hudson796644116462335904.sh
The system cannot find the file specified
FATAL: command execution failed
java.io.IOException: Cannot run program "sh" (in directory "C:\Program Files\Jenkins\jobs\P1\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:244)
at hudson.Proc$LocalProc.<init>(Proc.java:216)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:773)
at hudson.Launcher$ProcStarter.start(Launcher.java:353)
at hudson.Launcher$ProcStarter.join(Launcher.java:360)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:94)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:63)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785)
at hudson.model.Build$BuildExecution.build(Build.java:199)
at hudson.model.Build$BuildExecution.doRun(Build.java:160)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:566)
at hudson.model.Run.execute(Run.java:1678)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:231)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)