4

有没有人尝试为詹金斯使用加特林插件,但没有 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. 感谢您的任何建议。

4

1 回答 1

7

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

代码中,插件在构建的工作区中查找结果。

希望这可以帮助!

于 2013-07-29T08:18:14.767 回答