Hi,

I am trying to use ${BUILD_NUMBER} in the results file name and specifying 
the file name under 'Related report' section of 'Expert mode' in 
Performance Plugin.


My results are in a JTL file (CSV format inside). I am getting a 
NullPointerException when executing the build. 


To my surprise, when I use a filename directly, like results_112.jtl, it 
parses the file properly and gives me results as per the thresholds i 
defined. But when I use ${BUILD_NUMBER}, i get a NPE. 


Error message below.


C:\Program Files (x86)\Jenkins\workspace\First_Project>exit 0 
Performance: Recording JMeterCsv reports 'results_115.jtl'
Performance: Parsing JMeter report file 'C:\Program Files 
(x86)\Jenkins\jobs\First_Project\builds\115\performance-reports\JMeterCSV\results_115.jtl'.
java.lang.NullPointerException
        at 
hudson.plugins.performance.constraints.ConstraintFactory.createConstraintClones(ConstraintFactory.java:39)
        at 
hudson.plugins.performance.PerformancePublisher.evaluateInExpertMode(PerformancePublisher.java:982)
        at 
hudson.plugins.performance.PerformancePublisher.perform(PerformancePublisher.java:375)
        at 
hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
        at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
        at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:736)
        at 
hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:682)
        at hudson.model.Build$BuildExecution.post2(Build.java:186)
        at 
hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:627)
        at hudson.model.Run.execute(Run.java:1764)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
        at hudson.model.ResourceController.execute(ResourceController.java:97)
        at hudson.model.Executor.run(Executor.java:419)


Please don't as me to switch to XMl format, as I am doing a lot of other 
parsing and reporting based on this data in CSV format :)

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/84528fbe-6898-4f30-92c2-533584eaba37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to