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

Exception during gcc log parsing and warnings detection (regression)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • warnings-plugin
    • None
    • Hudson version : 1.336
      Warnings version : 2.14
      Gcc version : 3.4.6
      OS : Linux Red Hat

      During warnings parsing, the gcc warnings are not correctly detected.
      A gcc warnings is seen as an error and the build is set to failed (threshold set to 1 for error)
      Note that it was working correctly with Hudson 308 and Warnings 2.8

      I isolated the problem in gcc log file.
      You can find attached :

      • gcc log file
      • 2 C++ file associated with the log

      To reproduce the problem:

      • Create a Job Free Style
      • Copy in the workspace the three attached files
      • Activate the Scan of Warnings on the log file

      Results:

      • An error is incorrectly detected and failing the build (instead of detecting a warning)
      • By clicking on the detected error, the following exception is displayed:

      null
      01 hudson.util.IOException2: remote file operation failed
      02 at hudson.FilePath.act(FilePath.java:677)
      03 at hudson.FilePath.act(FilePath.java:665)
      04 at hudson.FilePath.copyTo(FilePath.java:1292)
      05 at hudson.plugins.warnings.util.HealthAwarePublisher.copyFilesWithAnnotationsToBuildFolder(HealthAwarePublisher.java:187)
      06 at hudson.plugins.warnings.util.HealthAwarePublisher.perform(HealthAwarePublisher.java:144)
      07 at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      08 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:577)
      09 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:563)
      10 at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:551)
      11 at hudson.model.Build$RunnerImpl.post2(Build.java:152)
      12 at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:535)
      13 at hudson.model.Run.run(Run.java:1199)
      14 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      15 at hudson.model.ResourceController.execute(ResourceController.java:88)
      16 at hudson.model.Executor.run(Executor.java:123)
      17 Caused by: java.io.FileNotFoundException: In file included from my_class.cpp (No such file or directory)
      18 at java.io.FileInputStream.open(Native Method)
      19 at java.io.FileInputStream.<init>(FileInputStream.java:106)
      20 at hudson.FilePath$30.invoke(FilePath.java:1296)
      21 at hudson.FilePath$30.invoke(FilePath.java:1292)
      22 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2072)
      23 at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
      24 at hudson.FilePath.act(FilePath.java:672)
      25 ... 14 more
      26 Can't copy file from workspace to build folder: workspace=In file included from my_class.cpp, build folder=/localdata/hudson/jobs/Hudson_Issues/builds/2010-03-29_01-34-18/workspace-files/958509f5.tmp

            drulli Ulli Hafner
            paskalad paskalad
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: