Jenkins job failure when running a freestyle maven-gatling project

前端 未结 2 1415
忘掉有多难
忘掉有多难 2020-12-22 07:32

I have created a gatling maven based application; wrote some actions, scenario and able to successfully run them locally in IDE using $mvn gatling:test to buil

相关标签:
2条回答
  • 2020-12-22 08:03

    Created a new free style job in jenkins and configured the Build step as: put the Root POM as pom.xml , in Goals and options gatling:test

    Also enabled simulation tracking

    0 讨论(0)
  • 2020-12-22 08:16

    I'm not sure how this can be fixed on a freestyle project but I'm sure a Gatling-Maven project works with a pipeline job. See a detailed description here: how to integrate gatling with jenkins

    As for the reports, you have to install the Gatling plugin on Jenkins. This adds a Gatling option to the menu bar on the left where the reports are listed from all the previous builds. It also shows some build statistics on graphs, which is nice. However, the reports are not portable (or at least I didn't find a way to download and zip all the source files as I would with the local report folder).

    0 讨论(0)
提交回复
热议问题