我正在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
上面的execute shell命令可以从命令行运行,但不能从jenkins运行。 任何帮助将不胜感激