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

Warnings NG plugin skips files reported by MSBuild because they are lower case

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • warnings-ng-plugin
    • None
    • Jenkins 2.176.2
      Warnings NG plugin 5.3.0
    • 6.0.0

      An example MSBuild warning is:

      c:\jenkins\workspace\zodiac_visualstudio_athena_release_only\starlibs\stdstars\firfilter.h(105): warning C4244: 'argument': conversion from 'TCoeffs' to 'const ...
      

      Warnings NG reports the warning but provides no link to the file:

      Here is the Warnings NG log:

      Information Messages
      Parsing console log (workspace: 'c:\jenkins\workspace\Zodiac_VisualStudio_Athena_release_Only')
      Post processing issues on 'jenkinswin10' with source code encoding 'UTF-8'
      Resolving absolute file names for all issues in workspace 'c:\jenkins\workspace\Zodiac_VisualStudio_Athena_release_Only'
      -> 10 resolved, 0 unresolved, 0 already resolved
      Resolving module names from module definitions (build.xml, pom.xml, or Manifest.mf files)
      -> resolved module names for 15 issues
      Resolving package names (or namespaces) by parsing the affected files
      -> resolved package names of 10 affected files
      No filter has been set, publishing all 15 issues
      Creating fingerprints for all affected code blocks to track issues over different builds
      -> created fingerprints for 15 issues
      Skipping blaming as requested in the job configuration
      Copying affected files to Jenkins' build folder '/var/lib/jenkins/jobs/Zodiac_VisualStudio_Athena_release_Only/builds/110/files-with-issues'
      -> 0 copied, 10 not in workspace, 0 not-found, 0 with I/O error
      Using reference build 'Zodiac_VisualStudio_Athena_release_Only #109' to compute new, fixed, and outstanding issues
      Issues delta (vs. reference build): outstanding: 15, new: 0, fixed: 3
      No quality gates have been set - skipping
      Health report is disabled - skipping
      

      The actual file path is:

      C:\jenkins\workspace\Zodiac_VisualStudio_Athena_release_Only\StarLibs\StdStars\FirFilter.h
      

      A similar problem was reported in the Sonar community: https://github.com/SonarOpenCommunity/sonar-cxx/issues/1651

      It seems that 'MSBuild creates always lower case paths.'

      Ullrich wrote on Gitter:

      Maybe an option would be to detect the OS and use an ignore-case option when trying to resolve the file names.

            drulli Ulli Hafner
            davida2009 David Aldrich
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: