有没有人尝试对詹金斯使用加特林插件,但没有maven?我没有maven项目,但是我使用Gatling从终端(bash脚本)生成结果。使用-rf开关我将结果文件夹的目标位置更改为/var/lib/jenkins/jobs/Gatling_test/builds/newest_build/results,但是无论如何都会出现错误:
-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。感谢您的任何建议。
Track a Gatling load simulation
我认为您应该将结果发送到作业的工作空间,而不是作业本身。
在代码中,插件在构建的工作区中寻找结果。
希望这可以帮助!