没有pom.xml的Jenkins的Gatling插件

时间:2013-07-29 07:48:34

标签: jenkins jenkins-plugins gatling

是否有人试图将gatling plugin用于jenkins,但没有maven?我没有maven项目,但是我使用终端中的Gatling(bash脚本)生成结果。使用-rf开关我将结果文件夹目标更改为/var/lib/jenkins/jobs/Gatling_test/builds/newest_build/results,但无论如何都有错误:

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。 感谢您的任何建议。

1 个答案:

答案 0 :(得分:7)

我认为您应该将结果发送到作业的工作区,而不是作业本身。

the code中,插件会在构建工作区中查找结果。

希望这有帮助!