Need to run a Maven plugin after Gatling(gatling-maven-plugin) to Publish results and Cleanup tasks.
From the following article mvn gatling:test is bound to the integration-test phase of Mavenhttps://github.com/gatling/gatling/blob/65524556b1aaee7d129cc9c4794977468493ad34/src/sphinx/extensions/maven_plugin.rst#usage
Interaction between the gatling and other plugins not possible during post-integration-phase. once gatling tests are started then the entire execution control ends within the same plugin.
Appreciate any advice on how to execute a plugin after gatling runs.
Sample snippet:
<plugin>
<groupId>io.gatling</groupId>
<artifactId>gatling-maven-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<simulationsFolder>src/test/scala</simulationsFolder>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>myId</id>
<phase>integration-test</phase>
<goals>
<goal>run</goal>
<configuration>
<target>
<echo message="running something after gatling"/>
</target>
</configuration>
</execution>
</executions>
</plugin>