1、下载:git clone https://github.com/jenkinsci/performance-plugin.git performance
2、maven运行performance
3、pom.xml中添加
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.4.2</version> <configuration> <skipTests>true</skipTests> </configuration> </plugin>
4、mvn package,打包performance
5、运行成功后,再文件夹performance\target下找到performance.hpi文件
6、打开Jenkins,系统管理》插件管理》高级》导入hpi文件