I am running Gatling 3.0.0-SNAPSHOT in a Jenkins instance and it generally works well. However, after a stress test failed to complete I am unable to generate the report using the gatling-maven plugin, either because I am doing it wrong or because there is some issue with the plugin:
However, the path that is fed to Gatling is the one specified in -Dgatling.resultsFolder with "/true" appended. It appears to not make any difference if I use a trailing space or not, nor does it make any difference if I use an absolute path or not (i.e. -Dgatling.resultsFolder=mycombosimulation-1521127678547), neither does using single or double quotes around the path help.
09:37:36 [INFO] 09:37:36.681 a.e.s.Slf4jLogger - Slf4jLogger started
09:37:36 Parsing log file(s)...
09:37:36 java.lang.reflect.InvocationTargetException
09:37:36 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
09:37:36 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
09:37:36 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
09:37:36 at java.lang.reflect.Method.invoke(Method.java:498)
09:37:36 at io.gatling.mojo.MainWithArgsInFile.runMain(MainWithArgsInFile.java:50)
09:37:36 at io.gatling.mojo.MainWithArgsInFile.main(MainWithArgsInFile.java:33)
09:37:36 Caused by: java.lang.IllegalArgumentException: requirement failed: simulation directory '/var/lib/jenkins/workspace/my-combo-stresstest/target/gatling/mymentcombosimulation-1521127678547/true' doesn't exist
09:37:36 at scala.Predef$.require(Predef.scala:277)
09:37:36 at io.gatling.core.config.GatlingFiles$.simulationLogDirectory(GatlingFiles.scala:49)
09:37:36 at io.gatling.charts.stats.LogFileReader.<init>(LogFileReader.scala:50)
09:37:36 at io.gatling.app.RunResultProcessor.initLogFileReader(RunResultProcessor.scala:67)
09:37:36 at io.gatling.app.RunResultProcessor.processRunResult(RunResultProcessor.scala:49)
09:37:36 at io.gatling.app.Gatling$.start(Gatling.scala:77)
09:37:36 at io.gatling.app.Gatling$.fromArgs(Gatling.scala:44)
09:37:36 at io.gatling.app.Gatling$.main(Gatling.scala:36)
09:37:36 at io.gatling.app.Gatling.main(Gatling.scala)
09:37:36 ... 6 more
Does anyone have any idea what I could do to get around this? Maven versions 3.3.9, 3.5.2 and 3.5.3 have all been tested with exactly the same result.