没有pom.xml的Jenkins的加特林插件 [英] Gatling plugin for Jenkins without pom.xml
问题描述
有人尝试过将加特林插件用于jenkins,但没有专家?我没有maven项目,但是我使用Gatling从终端(bash脚本)生成结果.使用-rf
开关,我将结果文件夹的目标位置更改为/var/lib/jenkins/jobs/Gatling_test/builds/newest_build/results
,但是仍然存在错误:
Has anyone tried to use gatling plugin for jenkins, but without maven? I don't have maven project, but I generate results using Gatling from terminal (bash script). Using -rf
switch I change results folder destination to /var/lib/jenkins/jobs/Gatling_test/builds/newest_build/results
, but anyway there is error:
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
Build仅运行shell脚本,并且post-build动作设置为Track a Gatling load simulation
.
感谢您的任何建议.
Build just run shell script, and post-build action is set to Track a Gatling load simulation
.
Thanks for any suggestions.
推荐答案
我认为您应该将结果发送到作业的工作空间中,而不是作业本身.
I think that you should send your results into the workspace of the job, not the job itself.
在代码插件在构建的工作区中查找结果.
In the code the plugin looks for results in the workspace of the build.
希望这会有所帮助!
这篇关于没有pom.xml的Jenkins的加特林插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!