我是Jenkins的新手,我正在尝试构建,并且我在控制台中发现了以下错误。请帮忙!我已经解决了大部分问题。
我按照教程:" http://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html"
此问题与此相关:"安装Jenkins的步骤并将其配置为使用TestNg Selenium运行Maven"
我还解决了上述教程中发生的大部分错误,现在我已经陷入了这个
Started by timer
Building in workspace C:\Program Files (x86)\Jenkins\workspace\WebdriverTest
[WebdriverTest] $ cmd /c call C:\Windows\TEMP\jenkins5869105887311849511.bat
C:\Program Files (x86)\Jenkins\workspace\WebdriverTest>D: -cp C:\Program Files\Java\jdk1.8.0_73\lib*;C:\Program Files\Java\jdk1.8.0_73\bin org.testng.TestNG testng.xml 1>java
D:\>exit 0
Parsing POMs
Established TCP socket on 18731
[WebdriverTest] $ "C:\Program Files\Java\jdk1.8.0_73/bin/java" -cp "C:\Program Files (x86)\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven33-agent-1.8.1.jar;C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\Maven\boot\plexus-classworlds-2.5.2.jar;C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\Maven/conf/logging" jenkins.maven3.agent.Maven33Main "C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\Maven" "C:\Program Files (x86)\Jenkins\war\WEB-INF\lib\remoting-3.7.jar" "C:\Program Files (x86)\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven33-interceptor-1.8.1.jar" "C:\Program Files (x86)\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-commons-1.8.1.jar" 18731
ERROR: Failed to parse POMs
java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.8.0_73/bin/java" (in directory "C:\Users\Huzaifa\workspace\WebdriverTest"): CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at hudson.Proc$LocalProc.<init>(Proc.java:245)
at hudson.Proc$LocalProc.<init>(Proc.java:214)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:850)
at hudson.Launcher$ProcStarter.start(Launcher.java:384)
at hudson.maven.AbstractMavenProcessFactory.newProcess(AbstractMavenProcessFactory.java:278)
at hudson.maven.ProcessCache.get(ProcessCache.java:236)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:798)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
at hudson.model.Run.execute(Run.java:1735)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:544)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:405)
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)
... 13 more
Finished: FAILURE