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

File names not correctly parsed

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I've installed the Warnings plugin, ticked the "Scan console log" option and set the Parser to "MSBuild". When I build my project (with a deliberate warning) I get my warning reported like in "NewWarning.png" attached. Note how the "Details" field is empty - I was expecting to see something like this https://builds.apache.org/job/Ant_Nightly/237/warningsResult/ - click the Warnings tab. Have I configured something incorrectly which stops me getting all that extra (clickable) information which would be really handy to a user?

      When I check in an updated source file which fixes my build warning I get information like in "FixedWarning.png" attached. As you can see the filename has been identified but further information seems sparse. Note: I couldn't find an example of what I should be seeing on this page so I'm not sure if it would tell me which warnings were fixed.

        Attachments

        1. FixedWarning.png
          FixedWarning.png
          6 kB
        2. NewWarning.png
          NewWarning.png
          13 kB
        3. Warnings.png
          Warnings.png
          5 kB

          Activity

          Hide
          tfields Thomas Fields added a comment -

          Hi Ulli,

          Sorry for the delay. Here's my console log:

          14:57:50       [exec] Microsoft (R) Visual Studio Version 9.0.30729.1.
          14:57:50       [exec] Copyright (C) Microsoft Corp. All rights reserved.
          14:57:50       [exec] 1>------ Build started: Project: NvTriStrip, Configuration: Win32Debug Win32 ------
          14:57:50       [exec] 1>Compiling...
          14:57:50       [exec] 1>NvTriStripObjects.cpp
          14:57:51       [exec] 1>NvTriStrip.cpp
          14:57:52       [exec] 1>Generating Code...
          14:57:52       [exec] 1>c:\jci\jobs\external_nvtristrip\workspace\compiler\cl\config\debug\platform\win32\tfields\live\external\nvtristrip\nvtristrip.cpp(125) : warning C4706: assignment within conditional expression
          14:57:53       [exec] 1>Creating library...
          14:57:53       [exec] 1>Build Time 0:02
          14:57:53       [exec] 1>Build log was saved at "file://C:\JCI\jobs\External_NvTriStrip\workspace\COMPILER\CL\CONFIG\Debug\PLATFORM\Win32\tfields\Live\Lib\Intermediate\External\NvTriStrip\Win32Debug\BuildLog.htm"
          14:57:53       [exec] 1>NvTriStrip - 0 error(s), 1 warning(s)
          14:57:53       [exec] ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
          14:57:53  
          14:57:53  BUILD SUCCESSFUL
          14:57:53  Total time: 4 seconds
          14:57:53  [WARNINGS] Parsing warnings in console log with parsers [MSBuild]
          14:57:53  [WARNINGS] MSBuild : Found 1 warnings.
          14:57:53  [WARNINGS] Using set difference to compute new warnings
          14:57:53  [WARNINGS] Setting build status to FAILURE since total number of annotations exceeds the threshold 0: [HIGH, NORMAL, LOW]
          14:57:53  Build step 'Scan for compiler warnings' changed build result to FAILURE
          
          Show
          tfields Thomas Fields added a comment - Hi Ulli, Sorry for the delay. Here's my console log: 14:57:50 [exec] Microsoft (R) Visual Studio Version 9.0.30729.1. 14:57:50 [exec] Copyright (C) Microsoft Corp. All rights reserved. 14:57:50 [exec] 1>------ Build started: Project: NvTriStrip, Configuration: Win32Debug Win32 ------ 14:57:50 [exec] 1>Compiling... 14:57:50 [exec] 1>NvTriStripObjects.cpp 14:57:51 [exec] 1>NvTriStrip.cpp 14:57:52 [exec] 1>Generating Code... 14:57:52 [exec] 1>c:\jci\jobs\external_nvtristrip\workspace\compiler\cl\config\debug\platform\win32\tfields\live\external\nvtristrip\nvtristrip.cpp(125) : warning C4706: assignment within conditional expression 14:57:53 [exec] 1>Creating library... 14:57:53 [exec] 1>Build Time 0:02 14:57:53 [exec] 1>Build log was saved at "file: //C:\JCI\jobs\External_NvTriStrip\workspace\COMPILER\CL\CONFIG\Debug\PLATFORM\Win32\tfields\Live\Lib\Intermediate\External\NvTriStrip\Win32Debug\BuildLog.htm" 14:57:53 [exec] 1>NvTriStrip - 0 error(s), 1 warning(s) 14:57:53 [exec] ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== 14:57:53 14:57:53 BUILD SUCCESSFUL 14:57:53 Total time: 4 seconds 14:57:53 [WARNINGS] Parsing warnings in console log with parsers [MSBuild] 14:57:53 [WARNINGS] MSBuild : Found 1 warnings. 14:57:53 [WARNINGS] Using set difference to compute new warnings 14:57:53 [WARNINGS] Setting build status to FAILURE since total number of annotations exceeds the threshold 0: [HIGH, NORMAL, LOW] 14:57:53 Build step 'Scan for compiler warnings' changed build result to FAILURE
          Hide
          maxvt Max Timchenko added a comment -

          Same here. Using the gcc parser, the make system is Ant executing GNU make. All output from make is prepended by exec:

          [exec] In file included from C:/Jenkins/jobs/x/workspace/rmnet-test/src/QoSFlowTest.cpp:14:
          [exec] C:/Jenkins/jobs/x/workspace/rmnet-test/../deps/gtest/inc/gtest/gtest.h: In function 'testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&)
          [with T1 = int, T2 = long unsigned int]':

          Because exec gets included into the filename, copying fails:

          01 Copying the source file '[exec] C:/Jenkins/jobs/x/workspace/y/src/receive.c' from the workspace to the build folder 'C:\Jenkins\jobs\x\builds\2011-07-21_15-21-48\workspace-files\149709e3.tmp' on the Hudson master failed.
          02 Is the file '[exec] C:/Jenkins/jobs/x/workspace/y/src/receive.c' a valid filename?

          Show
          maxvt Max Timchenko added a comment - Same here. Using the gcc parser, the make system is Ant executing GNU make. All output from make is prepended by exec: [exec] In file included from C:/Jenkins/jobs/x/workspace/rmnet-test/src/QoSFlowTest.cpp:14: [exec] C:/Jenkins/jobs/x/workspace/rmnet-test/../deps/gtest/inc/gtest/gtest.h: In function 'testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&) [with T1 = int, T2 = long unsigned int] ': Because exec gets included into the filename, copying fails: 01 Copying the source file ' [exec] C:/Jenkins/jobs/x/workspace/y/src/receive.c' from the workspace to the build folder 'C:\Jenkins\jobs\x\builds\2011-07-21_15-21-48\workspace-files\149709e3.tmp' on the Hudson master failed. 02 Is the file ' [exec] C:/Jenkins/jobs/x/workspace/y/src/receive.c' a valid filename?
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          .settings/org.eclipse.core.resources.prefs
          pom.xml
          src/main/java/hudson/plugins/warnings/parser/Gcc4CompilerParser.java
          src/main/java/hudson/plugins/warnings/parser/MsBuildParser.java
          src/test/java/hudson/plugins/warnings/parser/Gcc4CompilerParserTest.java
          src/test/java/hudson/plugins/warnings/parser/GccParserTest.java
          src/test/java/hudson/plugins/warnings/parser/MsBuildParserTest.java
          src/test/java/hudson/plugins/warnings/parser/ParserRegistryTest.java
          src/test/resources/hudson/plugins/warnings/parser/issue9926.txt
          http://jenkins-ci.org/commit/warnings-plugin/8118ca3c3cafd4e6f30ad2260efd9dd6460fa8ad
          Log:
          [Fixed JENKINS-9926]: Ignore ant task prefix when parsing warnings.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: .settings/org.eclipse.core.resources.prefs pom.xml src/main/java/hudson/plugins/warnings/parser/Gcc4CompilerParser.java src/main/java/hudson/plugins/warnings/parser/MsBuildParser.java src/test/java/hudson/plugins/warnings/parser/Gcc4CompilerParserTest.java src/test/java/hudson/plugins/warnings/parser/GccParserTest.java src/test/java/hudson/plugins/warnings/parser/MsBuildParserTest.java src/test/java/hudson/plugins/warnings/parser/ParserRegistryTest.java src/test/resources/hudson/plugins/warnings/parser/issue9926.txt http://jenkins-ci.org/commit/warnings-plugin/8118ca3c3cafd4e6f30ad2260efd9dd6460fa8ad Log: [Fixed JENKINS-9926] : Ignore ant task prefix when parsing warnings.
          Hide
          dogfood dogfood added a comment -

          Integrated in plugins_warnings #142
          [Fixed JENKINS-9926]: Ignore ant task prefix when parsing warnings.

          Ulli Hafner :
          Files :

          • src/test/resources/hudson/plugins/warnings/parser/issue9926.txt
          • src/test/java/hudson/plugins/warnings/parser/MsBuildParserTest.java
          • src/main/java/hudson/plugins/warnings/parser/Gcc4CompilerParser.java
          • src/main/java/hudson/plugins/warnings/parser/MsBuildParser.java
          • pom.xml
          • .settings/org.eclipse.core.resources.prefs
          • src/test/java/hudson/plugins/warnings/parser/ParserRegistryTest.java
          • src/test/java/hudson/plugins/warnings/parser/GccParserTest.java
          • src/test/java/hudson/plugins/warnings/parser/Gcc4CompilerParserTest.java
          Show
          dogfood dogfood added a comment - Integrated in plugins_warnings #142 [Fixed JENKINS-9926] : Ignore ant task prefix when parsing warnings. Ulli Hafner : Files : src/test/resources/hudson/plugins/warnings/parser/issue9926.txt src/test/java/hudson/plugins/warnings/parser/MsBuildParserTest.java src/main/java/hudson/plugins/warnings/parser/Gcc4CompilerParser.java src/main/java/hudson/plugins/warnings/parser/MsBuildParser.java pom.xml .settings/org.eclipse.core.resources.prefs src/test/java/hudson/plugins/warnings/parser/ParserRegistryTest.java src/test/java/hudson/plugins/warnings/parser/GccParserTest.java src/test/java/hudson/plugins/warnings/parser/Gcc4CompilerParserTest.java
          Hide
          tfields Thomas Fields added a comment -

          Hi Ulli, I installed 3.20-SNAPSHOT (private-07/27/2011 08:04-slave) and the warnings plugin is now working great. Thanks very much. Tom.

          Show
          tfields Thomas Fields added a comment - Hi Ulli, I installed 3.20-SNAPSHOT (private-07/27/2011 08:04-slave) and the warnings plugin is now working great. Thanks very much. Tom.

            People

            • Assignee:
              drulli Ulli Hafner
              Reporter:
              tfields Thomas Fields
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: