解决Jenkins performance-plugin 解析jmeter jtl报告NumberFormatException "timeStamp"
报错日志:
Performance: Failed to parse file '/var/lib/jenkins/jobs/Jmeter/jobs/jmeter-test/builds/14/performance-reports/JMeter/api_home.jtl': For input string: "timeStamp" java.lang.NumberFormatException: For input string: "timeStamp"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Long.parseLong(Long.java:589) at java.lang.Long.valueOf(Long.java:803)
at hudson.plugins.performance.JMeterCsvParser.getSample(JMeterCsvParser.java:153)
at hudson.plugins.performance.JMeterCsvParser.parse(JMeterCsvParser.java:124)
at hudson.plugins.performance.JMeterParser.parseCsv(JMeterParser.java:189)
at hudson.plugins.performance.JMeterParser.parse(JMeterParser.java:48)
at hudson.plugins.performance.AbstractParser.parse(AbstractParser.java:56)
at hudson.plugins.performance.PerformancePublisher.perform(PerformancePublisher.java:347)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
at hudson.model.Build$BuildExecution.post2(Build.java:185)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
at hudson.model.Run.execute(Run.java:1763)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Finished: SUCCESS
解决办法:升级 performance-plugin 插件版本 1.15 and later
注:performance-plugin 版本无法升级,请查看对应Jenkins版本是否需要更新