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

Performance plugin 2.2 breaks glob file finding

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • performance-plugin
    • None
    • Jenkins 2.46 LTS on RHEL

      Since updating from 2.1 to 2.2, glob lookups are failing for me.

      For example, in the "Publish performance test result report" box, in the JMeter "Report files" field, I have it configured to include "*/results/.jtl"

      This has worked for years

      However, as of the 2.2 update, I'm now getting this:

       

      ERROR: Step ‘Publish Performance test result report’ aborted due to exception:
      
      [java.io.FileNotFoundException|http://stacktrace.jenkins-ci.org/search?query=java.io.FileNotFoundException]
      
      : /var/lib/jenkins/workspace/job-name/HOST/[redacted]/**/results/*.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) at hudson.plugins.performance.PerformancePublisher.getParsers(PerformancePublisher.java:439) at hudson.plugins.performance.PerformancePublisher.perform(PerformancePublisher.java:481) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720) at hudson.model.Build$BuildExecution.post2(Build.java:186) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665) at hudson.model.Run.execute(Run.java:1753) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:405)
      

      If I downgrade the plugin, it starts working as expected

      FWIW, this is on a Matrix style job.

      If I set the "Report files" field to include a specific file name, rather than glob-style, it works.

      So it looks like something in the latest release broke glob lookups, at least on Matrix jobs (I have not tested a non-matrix job)

        1. default1.jmx
          5 kB
        2. jmeter_test_results.jtl
          15 kB
        3. res.csv
          0.6 kB
        4. save result config.png
          save result config.png
          75 kB

            artem_fedorov Artem Fedorov
            marcesher Marc Esher
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: