jenkins - 没有 pom.xml 的 Jenkins 的加特林插件

标签 jenkins jenkins-plugins gatling

有人尝试过使用 gatling plugin对于 Jenkins ,但没有maven?我没有 Maven 项目,但我使用终端(bash 脚本)中的 Gadling 生成结果。使用 -rf 开关我将结果文件夹目标更改为 /var/lib/jenkins/jobs/Gadling_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 脚本,构建后操作设置为跟踪加特林负载模拟。 感谢您的任何建议。

最佳答案

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

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

希望这有帮助!

关于jenkins - 没有 pom.xml 的 Jenkins 的加特林插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17918600/

相关文章:

php - 如何配置 Jenkins 作业以运行单元测试

jenkins - 当我在 Jenkins 中使用 Kubernetes 作为我的代理时,它不会允许另一个执行器进入阶段

amazon-web-services - 如何在 Jenkins 上启动多台 AWS EC2 机器?

scala - 使用 ChainBuilder 定义加特林用户流的最佳方法是什么?

scala - Ga特林 - 在simulation.log或控制台中记录请求正文

jenkins - 在从属节点上运行构建时,Docker为什么有用?

java - Jenkins 插件 : Connect jelly and java

jenkins - 在 Jenkins 作业中的另一个 Jenkins 实例上运行 Jenkins 作业

jenkins - 从 Jenkins 的工作区发送带有附件的 html 格式的电子邮件

scala - 如何在 GATLING 中获取 javascript 变量值