我已经安装了python插件。 https://wiki.jenkins.io/display/JENKINS/Python+Plugin
但是在运行测试作业时,由于找不到python,我的误差低于此值。
Started by user uday kiran
[EnvInject] - Loading node environment variables.
Building on master in workspace C:\Program Files (x86)\Jenkins\workspace\testpy
[testpy] $ python C:\Windows\TEMP\hudson2789497398258110842.py
The system cannot find the file specified
FATAL: command execution failed
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)
Caused: java.io.IOException: Cannot run program "python" (in directory "C:\Program Files (x86)\Jenkins\workspace\testpy"): CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
有什么建议吗? 即使我尝试只保留文件夹,而不是路径到exe,仍然是同样的问题。
答案 0 :(得分:0)
这似乎不是Python的问题。 错误说它无法找到实际文件,例如。的 testpy 强>
确保您的路径正确,以及您尝试引用的文件,例如。
C:\ Program Files(x86)\ Jenkins \ workspace \ testpy.py