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

False positive with msbuild parser

    Details

    • Similar Issues:
    • Released As:
      analysis-model-api 4.0.0

      Description

      Hello:

      I've found a false positive using the Msbuild Warning parser when the output of the Jenkins job display the following string:

      3: Known information: 
      

      Note that there must be a final space at the end: '3: Known information: ' (without single quotes). If you remove the final space the warning is gone. A minimal test case was implemented here:
      http://build.osrfoundation.org/job/_test_bug_msbuild_ignition_transport/29

      It generates the following backtrace:

      01 Copying the source file '3' from the workspace to the build folder '33.tmp' on the Jenkins master failed.
      02 Seems that the path is relative, however an absolute path is required when copying the sources.
      03 Is the file '3' contained more than once in your workspace?
      04 Is the file '3' a valid filename?
      05 If you are building on a slave: please check if the file is accessible under '$JENKINS_HOME/[job-name]/3'
      06 If you are building on the master: please check if the file is accessible under '$JENKINS_HOME/[job-name]/workspace/3'
      07 java.io.IOException: Failed to copy 3 to /var/lib/jenkins/jobs/_test_bug_msbuild_ignition_transport/builds/29/workspace-files/33.tmp
      08   at hudson.FilePath.copyTo(FilePath.java:1984)
      09   at hudson.plugins.analysis.util.Files.copyFilesWithAnnotationsToBuildFolder(Files.java:80)
      10   at hudson.plugins.analysis.core.HealthAwareRecorder.copyFilesWithAnnotationsToBuildFolder(HealthAwareRecorder.java:348)
      11   at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:89)
      12   at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:295)
      13   at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
      14   at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      15   at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      16   at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
      17   at hudson.model.Build$BuildExecution.post2(Build.java:185)
      18   at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
      19   at hudson.model.Run.execute(Run.java:1753)
      20   at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      21   at hudson.model.ResourceController.execute(ResourceController.java:98)
      22   at hudson.model.Executor.run(Executor.java:404)
      23 Caused by: java.io.IOException: remote file operation failed: 3 at hudson.remoting.Channel@7a5c4d93:Channel to /70.35.50.58: java.io.FileNotFoundException: 3 (No such file or directory)
      24   at hudson.FilePath.act(FilePath.java:992)
      25   at hudson.FilePath.act(FilePath.java:974)
      26   at hudson.FilePath.copyTo(FilePath.java:2005)
      27   at hudson.FilePath.copyTo(FilePath.java:1981)
      28   ... 14 more
      29 Caused by: java.io.FileNotFoundException: 3 (No such file or directory)
      30   at java.io.FileInputStream.open(Native Method)
      

      Thanks.

        Attachments

          Activity

          jrivero Jose Luis Rivero created issue -
          jrivero Jose Luis Rivero made changes -
          Field Original Value New Value
          Description Hello:

          I've found a false positive using the Msbuild Warning parser when the output of the Jenkins job display the following string:

          {code:none}
          3: Known information:
          {code}

          Note that there must a final space at the end: '3: Known information: ' . If you remove the final space the warning is gone. A minimal test case was implemented here:
          http://build.osrfoundation.org/job/_test_bug_msbuild_ignition_transport/29

          It generates the following backtrace:

          {code:java}
          01 Copying the source file '3' from the workspace to the build folder '33.tmp' on the Jenkins master failed.
          02 Seems that the path is relative, however an absolute path is required when copying the sources.
          03 Is the file '3' contained more than once in your workspace?
          04 Is the file '3' a valid filename?
          05 If you are building on a slave: please check if the file is accessible under '$JENKINS_HOME/[job-name]/3'
          06 If you are building on the master: please check if the file is accessible under '$JENKINS_HOME/[job-name]/workspace/3'
          07 java.io.IOException: Failed to copy 3 to /var/lib/jenkins/jobs/_test_bug_msbuild_ignition_transport/builds/29/workspace-files/33.tmp
          08 at hudson.FilePath.copyTo(FilePath.java:1984)
          09 at hudson.plugins.analysis.util.Files.copyFilesWithAnnotationsToBuildFolder(Files.java:80)
          10 at hudson.plugins.analysis.core.HealthAwareRecorder.copyFilesWithAnnotationsToBuildFolder(HealthAwareRecorder.java:348)
          11 at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:89)
          12 at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:295)
          13 at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
          14 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          15 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
          16 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
          17 at hudson.model.Build$BuildExecution.post2(Build.java:185)
          18 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
          19 at hudson.model.Run.execute(Run.java:1753)
          20 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          21 at hudson.model.ResourceController.execute(ResourceController.java:98)
          22 at hudson.model.Executor.run(Executor.java:404)
          23 Caused by: java.io.IOException: remote file operation failed: 3 at hudson.remoting.Channel@7a5c4d93:Channel to /70.35.50.58: java.io.FileNotFoundException: 3 (No such file or directory)
          24 at hudson.FilePath.act(FilePath.java:992)
          25 at hudson.FilePath.act(FilePath.java:974)
          26 at hudson.FilePath.copyTo(FilePath.java:2005)
          27 at hudson.FilePath.copyTo(FilePath.java:1981)
          28 ... 14 more
          29 Caused by: java.io.FileNotFoundException: 3 (No such file or directory)
          30 at java.io.FileInputStream.open(Native Method)
          {code}

          Thanks.
          Hello:

          I've found a false positive using the Msbuild Warning parser when the output of the Jenkins job display the following string:

          {code:none}
          3: Known information:
          {code}

          Note that there must be a final space at the end: '3: Known information: ' (without single quotes). If you remove the final space the warning is gone. A minimal test case was implemented here:
          http://build.osrfoundation.org/job/_test_bug_msbuild_ignition_transport/29

          It generates the following backtrace:

          {code:java}
          01 Copying the source file '3' from the workspace to the build folder '33.tmp' on the Jenkins master failed.
          02 Seems that the path is relative, however an absolute path is required when copying the sources.
          03 Is the file '3' contained more than once in your workspace?
          04 Is the file '3' a valid filename?
          05 If you are building on a slave: please check if the file is accessible under '$JENKINS_HOME/[job-name]/3'
          06 If you are building on the master: please check if the file is accessible under '$JENKINS_HOME/[job-name]/workspace/3'
          07 java.io.IOException: Failed to copy 3 to /var/lib/jenkins/jobs/_test_bug_msbuild_ignition_transport/builds/29/workspace-files/33.tmp
          08 at hudson.FilePath.copyTo(FilePath.java:1984)
          09 at hudson.plugins.analysis.util.Files.copyFilesWithAnnotationsToBuildFolder(Files.java:80)
          10 at hudson.plugins.analysis.core.HealthAwareRecorder.copyFilesWithAnnotationsToBuildFolder(HealthAwareRecorder.java:348)
          11 at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:89)
          12 at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:295)
          13 at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
          14 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          15 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
          16 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
          17 at hudson.model.Build$BuildExecution.post2(Build.java:185)
          18 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
          19 at hudson.model.Run.execute(Run.java:1753)
          20 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          21 at hudson.model.ResourceController.execute(ResourceController.java:98)
          22 at hudson.model.Executor.run(Executor.java:404)
          23 Caused by: java.io.IOException: remote file operation failed: 3 at hudson.remoting.Channel@7a5c4d93:Channel to /70.35.50.58: java.io.FileNotFoundException: 3 (No such file or directory)
          24 at hudson.FilePath.act(FilePath.java:992)
          25 at hudson.FilePath.act(FilePath.java:974)
          26 at hudson.FilePath.copyTo(FilePath.java:2005)
          27 at hudson.FilePath.copyTo(FilePath.java:1981)
          28 ... 14 more
          29 Caused by: java.io.FileNotFoundException: 3 (No such file or directory)
          30 at java.io.FileInputStream.open(Native Method)
          {code}

          Thanks.
          drulli Ulli Hafner made changes -
          Labels simple-test
          drulli Ulli Hafner made changes -
          Component/s analysis-model [ 23523 ]
          Component/s warnings-plugin [ 15513 ]
          drulli Ulli Hafner made changes -
          Labels simple-test newbie-friendly
          drulli Ulli Hafner made changes -
          Labels newbie-friendly help-wanted newbie-friendly
          drulli Ulli Hafner made changes -
          Assignee Ulli Hafner [ drulli ]
          laebi Lorenz Aebi made changes -
          Assignee Lorenz Aebi [ laebi ]
          laebi Lorenz Aebi made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          laebi Lorenz Aebi made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]
          drulli Ulli Hafner made changes -
          Status In Review [ 10005 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          drulli Ulli Hafner made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] In Review [ 10005 ]
          drulli Ulli Hafner made changes -
          Status In Review [ 10005 ] Fixed but Unreleased [ 10203 ]
          Resolution Fixed [ 1 ]
          laebi Lorenz Aebi made changes -
          Status Fixed but Unreleased [ 10203 ] Resolved [ 5 ]
          Released As analysis-model-api 4.0.0

            People

            • Assignee:
              laebi Lorenz Aebi
              Reporter:
              jrivero Jose Luis Rivero
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: