2013-07-29 20 views
4

有沒有人試圖使用gatling plugin詹金斯,但沒有maven?我沒有Maven項目,但是我使用終端(bash腳本)中的Gatling生成了結果。使用-rf開關更改結果文件夾目的地/var/lib/jenkins/jobs/Gatling_test/builds/newest_build/results,但無論如何,有錯誤:詹金斯加特林插件沒有pom.xml

Archiving Gatling reports... 
ERROR: Publisher com.excilys.ebi.gatling.jenkins.GatlingPublisher aborted due to exception 
java.lang.IllegalArgumentException: Could not find a Gatling report in results folder. 
    at com.excilys.ebi.gatling.jenkins.GatlingPublisher.saveFullReports(GatlingPublisher.java:97) 
    at com.excilys.ebi.gatling.jenkins.GatlingPublisher.perform(GatlingPublisher.java:65) 
    at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) 
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) 
    at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776) 
    at hudson.model.Build$BuildExecution.post2(Build.java:183) 
    at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726) 
    at hudson.model.Run.execute(Run.java:1618) 
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 
    at hudson.model.ResourceController.execute(ResourceController.java:88) 
    at hudson.model.Executor.run(Executor.java:247) 
Finished: FAILURE 

只構建運行shell腳本,生成後的操作設置爲Track a Gatling load simulation。 感謝您的任何建議。

回答

6

我認爲你應該把你的結果發送到工作的工作區,而不是工作本身。

the code該插件在構建的工作區中查找結果。

希望這會有所幫助!

+0

完美!這是解決方案。在'-rf'切換到'/ var/lib/jenkins/jobs/Gatling_test/workspace/results'後,我改變了路徑並且它工作正常:) 謝謝 –

+0

感謝您的提示。您也可以使用Jenkins環境變量$ WORKSPACE而不是對項目名稱進行硬編碼。 –