有没有人尝试过使用加特林插件 https://wiki.jenkins-ci.org/display/JENKINS/Gatling+Plugin对于詹金斯,但没有maven?我没有 Maven 项目,但我使用终端(bash 脚本)中的 Gadling 生成结果。使用-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
。
感谢您的任何建议。
我认为您应该将结果发送到工作的工作区,而不是工作本身。
In the code https://github.com/jenkinsci/gatling-plugin/blob/master/src/main/java/com/excilys/ebi/gatling/jenkins/GatlingPublisher.java#L65该插件在构建的工作区中查找结果。
希望这可以帮助!
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)