Gatling plugin for Jenkins without pom.xml

Has anyone tried to use the gatling plugin for jenkins but without maven? I do not have a maven project, but I am generating results using Gatling from the terminal (bash script). Using the -rf switch, I change the destination folder to /var/lib/jenkins/jobs/Gatling_test/builds/newest_build/results , but in any case an error occurs:

 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 just run the shell script, and the post-build action is set to Track a Gatling load simulation . Thanks for any suggestions.

+4
source share
1 answer

I think that you should send your results to the workspace of the assignment, and not to work.

In the code, the plugin searches for results in the assembly workspace.

Hope this helps!

+6
source

Source: https://habr.com/ru/post/1494026/


All Articles