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

edu.hm.hafner.analysis.ParsingException: Unable to change directory using...

      ParsingException is thrown when performing "Post-build Actions: Record compiler warnings and static analysis results". Tool is set to IAR Compiler (C/C++).

      The issue happens after upgrading to version 10.5.2. There are no issues when using Analysis Model API version 10.5.1.

       

      edu.hm.hafner.analysis.ParsingException: Unable to change directory using: .make(?:[\d+])?: Entering directory [`'](?<dir>.)['`] to match ninja: Entering directory `bin/example_project'
      at edu.hm.hafner.analysis.LookaheadParser.extractDirectory(LookaheadParser.java:155)
      at edu.hm.hafner.analysis.LookaheadParser.newMakeDirectory(LookaheadParser.java:92)
      at edu.hm.hafner.analysis.LookaheadParser.handleDirectoryChanges(LookaheadParser.java:121)
      at edu.hm.hafner.analysis.LookaheadParser.parse(LookaheadParser.java:68)
      at edu.hm.hafner.analysis.LookaheadParser.parse(LookaheadParser.java:57)
      at io.jenkins.plugins.analysis.core.model.ReportScanningTool.scanInConsoleLog(ReportScanningTool.java:190)
      at io.jenkins.plugins.analysis.core.model.ReportScanningTool.scan(ReportScanningTool.java:137)
      at io.jenkins.plugins.analysis.core.model.ReportScanningTool.scan(ReportScanningTool.java:129)
      at io.jenkins.plugins.analysis.core.steps.IssuesScanner.scan(IssuesScanner.java:95)
      at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.scanWithTool(IssuesRecorder.java:765)
      at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.record(IssuesRecorder.java:728)
      at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.perform(IssuesRecorder.java:697)
      at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.perform(IssuesRecorder.java:673)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:806)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:755)
      at hudson.model.Build$BuildExecution.post2(Build.java:178)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:699)
      at hudson.model.Run.execute(Run.java:1913)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:99)
      at hudson.model.Executor.run(Executor.java:432)
      Build step 'Record compiler warnings and static analysis results' marked build as failure

          [JENKINS-66923] edu.hm.hafner.analysis.ParsingException: Unable to change directory using...

          Ulli Hafner added a comment -

          Can you please paste a snippet of your ninja output so we can create a new test case? (The part with the text Entering directory)

          Ulli Hafner added a comment - Can you please paste a snippet of your ninja output so we can create a new test case? (The part with the text Entering directory )

          I'm also affected by this after upgrading to 10.5.2. The build system is waf.

          [GCC] Parsing console log (workspace: '/home/jenkins/workspace/ndn-cxx/OS/Ubuntu-20.04')
          ERROR: Build step failed with exception
          edu.hm.hafner.analysis.ParsingException: Unable to change directory using: .*make(?:\[\d+])?: Entering directory [`'](?<dir>.*)['`] to match Waf: Entering directory `/home/jenkins/workspace/ndn-cxx/OS/Ubuntu-20.04/build'
          	at edu.hm.hafner.analysis.LookaheadParser.extractDirectory(LookaheadParser.java:155)
          	at edu.hm.hafner.analysis.LookaheadParser.newMakeDirectory(LookaheadParser.java:92)
          	at edu.hm.hafner.analysis.LookaheadParser.handleDirectoryChanges(LookaheadParser.java:121)
          	at edu.hm.hafner.analysis.LookaheadParser.parse(LookaheadParser.java:68)
          	at edu.hm.hafner.analysis.LookaheadParser.parse(LookaheadParser.java:57)
          	at edu.hm.hafner.analysis.registry.CompositeParserDescriptor$CompositeParser.parse(CompositeParserDescriptor.java:84)
          	at io.jenkins.plugins.analysis.core.model.ReportScanningTool.scanInConsoleLog(ReportScanningTool.java:190)
          	at io.jenkins.plugins.analysis.core.model.ReportScanningTool.scan(ReportScanningTool.java:137)
          	at io.jenkins.plugins.analysis.core.model.ReportScanningTool.scan(ReportScanningTool.java:129)
          	at io.jenkins.plugins.analysis.core.steps.IssuesScanner.scan(IssuesScanner.java:95)
          	at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.scanWithTool(IssuesRecorder.java:765)
          	at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.record(IssuesRecorder.java:728)
          	at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.perform(IssuesRecorder.java:697)
          	at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.perform(IssuesRecorder.java:673)
          	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:806)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:755)
          	at hudson.model.Build$BuildExecution.post2(Build.java:178)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:699)
          	at hudson.model.Run.execute(Run.java:1913)
          	at hudson.matrix.MatrixRun.run(MatrixRun.java:153)
          	at hudson.model.ResourceController.execute(ResourceController.java:99)
          	at hudson.model.Executor.run(Executor.java:432)
          Build step 'Record compiler warnings and static analysis results' marked build as failure
          

          Waf prints the following at the beginning of the build:

          Waf: Entering directory `/home/jenkins/workspace/ndn-cxx/OS/Ubuntu-20.04/build'
          

          And this at the end:

          Waf: Leaving directory `/home/jenkins/workspace/ndn-cxx/OS/Ubuntu-20.04/build'
          

          Davide Pesavento added a comment - I'm also affected by this after upgrading to 10.5.2. The build system is waf. [GCC] Parsing console log (workspace: '/home/jenkins/workspace/ndn-cxx/OS/Ubuntu-20.04') ERROR: Build step failed with exception edu.hm.hafner.analysis.ParsingException: Unable to change directory using: .*make(?:\[\d+])?: Entering directory [`'](?<dir>.*)['`] to match Waf: Entering directory `/home/jenkins/workspace/ndn-cxx/OS/Ubuntu-20.04/build' at edu.hm.hafner.analysis.LookaheadParser.extractDirectory(LookaheadParser.java:155) at edu.hm.hafner.analysis.LookaheadParser.newMakeDirectory(LookaheadParser.java:92) at edu.hm.hafner.analysis.LookaheadParser.handleDirectoryChanges(LookaheadParser.java:121) at edu.hm.hafner.analysis.LookaheadParser.parse(LookaheadParser.java:68) at edu.hm.hafner.analysis.LookaheadParser.parse(LookaheadParser.java:57) at edu.hm.hafner.analysis.registry.CompositeParserDescriptor$CompositeParser.parse(CompositeParserDescriptor.java:84) at io.jenkins.plugins.analysis.core.model.ReportScanningTool.scanInConsoleLog(ReportScanningTool.java:190) at io.jenkins.plugins.analysis.core.model.ReportScanningTool.scan(ReportScanningTool.java:137) at io.jenkins.plugins.analysis.core.model.ReportScanningTool.scan(ReportScanningTool.java:129) at io.jenkins.plugins.analysis.core.steps.IssuesScanner.scan(IssuesScanner.java:95) at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.scanWithTool(IssuesRecorder.java:765) at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.record(IssuesRecorder.java:728) at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.perform(IssuesRecorder.java:697) at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.perform(IssuesRecorder.java:673) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:806) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:755) at hudson.model.Build$BuildExecution.post2(Build.java:178) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:699) at hudson.model.Run.execute(Run.java:1913) at hudson.matrix.MatrixRun.run(MatrixRun.java:153) at hudson.model.ResourceController.execute(ResourceController.java:99) at hudson.model.Executor.run(Executor.java:432) Build step 'Record compiler warnings and static analysis results' marked build as failure Waf prints the following at the beginning of the build: Waf: Entering directory `/home/jenkins/workspace/ndn-cxx/OS/Ubuntu-20.04/build' And this at the end: Waf: Leaving directory `/home/jenkins/workspace/ndn-cxx/OS/Ubuntu-20.04/build'

          Ninja output. The path is the same as the one written in the first line in the exception.

          ninja: Entering directory `bin/example_project'
          

           

          Martin Boye Petersen added a comment - Ninja output. The path is the same as the one written in the first line in the exception. ninja: Entering directory `bin/example_project'  

          Walter Gates added a comment -

          Walter Gates added a comment - Created pull request: https://github.com/jenkinsci/analysis-model/pull/695

          Version 10.5.3 fixes the issue. Thanks for the fast support.

          Martin Boye Petersen added a comment - Version 10.5.3 fixes the issue. Thanks for the fast support.

            wgates Walter Gates
            martinbp Martin Boye Petersen
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: