-
Bug
-
Resolution: Fixed
-
Minor
-
Jenkins 2.176
Analysis Model API Plug-in 5.0.0
Warnings Next Generation Plugin 5.0.0
-
-
5.0.2
The warning analysis reports a false positive if e.g. the build project name contains the string "info".
For example, the line below is matched by the regexp parser:
311>------ Build started: Project: sysinfo, Configuration: Debug Win32 ------
This obviously leads to an error during the report generation:
[DEBUG] [-ERROR-] Can't resolve absolute paths for some files: [DEBUG] [-ERROR-] - C:/jenkins/workspace/acecode-win/build/------ Build started: Project [DEBUG] [-ERROR-] Can't create fingerprints for some files: [DEBUG] [-ERROR-] - 'C:/jenkins/workspace/acecode-win/build/------ Build started: Project', IO exception has been thrown: java.nio.file.InvalidPathException: Illegal char <:> at index 59: C:/jenkins/workspace/acecode-win/build/------ Build started: Project
I don't know about the broader scope of the different versions of MsBuild and the corresponding outputs that have to be matched with the regexp, but I have a suggestions which fixes my issue. Obviously I cannot guarantee that this doesn't break anything else but looking at the examples in the unit test file msbuild.txt it could be valid.
New regexp pattern:
I removed the "optional"-flag (question mark) for the whitespace before the note/info/warning/fatal error strings. In other words, the strings are now only matched if they have a whitespace right before them which seems to be valid for the test cases in the unit test file msbuild.txt.
This should probably be checked by someone more familiar with the various MsBuild outputs but I just wanted to contribute a bit and provide some guidance to solve the issue.