Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-43438

Performance plugin can't find JMeter files for pipeline jobs using non-default glob

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • performance-plugin
    • None
    • Jenkins 2.50
      Performance plugin 2.2

      In a Jenknsfile, inside a node block, if try and specify the file like

       

       perfReport '/home/jenkins/workspace/sandbox/_out/jmeter.jtl'
      

      or

      performanceReport parsers: [[$class: 'JMeterParser', glob: '_out/jmeter.jtl']], relativeFailedThresholdNegative: 1.2, relativeFailedThresholdPositive: 1.89, relativeUnstableThresholdNegative: 1.8, relativeUnstableThresholdPositive: 1.5
      
      

       

      I get

       

      [Pipeline] End of Pipeline
      java.io.FileNotFoundException: /home/jenkins/workspace/sandbox/_out/jmeter.jtl (No such file or directory)
      	at java.io.FileInputStream.open0(Native Method)
      	at java.io.FileInputStream.open(FileInputStream.java:195)
      	at java.io.FileInputStream.<init>(FileInputStream.java:138)
      	at java.io.FileReader.<init>(FileReader.java:72)
      	at hudson.plugins.performance.parsers.ParserDetector.detect(ParserDetector.java:21)
      	at hudson.plugins.performance.parsers.ParserFactory.getParser(ParserFactory.java:26)
      

      I can

      sh 'cat _out/jmeter.jtl' 

      or ls it just fine, specifying the exact same path from the FileNotFoundException.

       I tried moving it to the root of the workspace, tried using ${WORKSPACE}, tried glob: '_out/*/.jtl

      What does work is performanceReport with the glob attribute removed, or set to the default */.jtl.   

      It generates this message: 

      Performance: Parsing JMeter report file '/var/jenkins_home/jobs/sandbox/builds/119/performance-reports/JMeter/jmeter.jtl'.

       

       

       

            artem_fedorov Artem Fedorov
            mstave mstave
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: