Jenkins:错误:无法找到或加载主类-jar

时间:2015-05-22 06:30:12

标签: java selenium jenkins

我正在jenkins上运行selenium IDE Testcase,我已经为jenkins下载了selenium HQ插件,并在Jenkins中创建了一个项目来运行我的测试用例。我收到了错误

[seleniumIDETest] $ /bin/sh -xe /tmp/hudson9142255229009628890.sh
+ java –jar /home/jenkins/software/selenium/selenium-server-standalone-2.43.1.jar -htmlSuite *firefox http://www.google.com /var/lib/jenkins/workspace/googleTest/googleTestSuite.html /var/lib/jenkins/workspace/googleTest/test.html 

Error: Could not find or load main class –jar
Build step 'Execute shell' marked build as failure
Publishing Selenium report...
Finished: FAILURE

enter image description here

上面的execute shell命令可以从命令行运行,但不能从jenkins运行。 任何帮助将不胜感激

0 个答案:

没有答案