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

Warning can't detect the PCLint's output while using the options from the wiki webpages.

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • warnings-plugin
    • None
    • Configuration;
      Windows XP SP2
      Hudson 2.2.0
      Warnings plugin 4.5
      PcLint 8.0

      my pclint options.lnt file's content is belows:
      +ffn // force full path names
      -width(0) // don't insert line breaks (unlimited output width).
      -hf1 // message height one
      -"format=%f(%l): %t %n: %m "

      the pclint output are:
      F:\AC_working\new-wlanac\ac\np\capwap\source\capwap_data.c(974): Error 40: Undeclared identifier 'TRUE'
      F:\AC_working\new-wlanac\ac\np\capwap\source\capwap_data.c(974): Error 63: Expected an lvalue
      F:\AC_working\new-wlanac\ac\np\capwap\source\capwap_data.c(975): Error 40: Undeclared identifier 'pDstCwData'
      F:\AC_working\new-wlanac\ac\np\capwap\source\capwap_data.c(975): Error 10: Expecting a structure or union

      I try to not use the +ffn, but Warnings still can't detect the PCLint output.

        1. lint parse cfg.jpg
          lint parse cfg.jpg
          149 kB
        2. lint parser cfg.jpg
          lint parser cfg.jpg
          149 kB
        3. screenshot-1.jpg
          screenshot-1.jpg
          67 kB

          [JENKINS-14888] Warning can't detect the PCLint's output while using the options from the wiki webpages.

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          src/test/java/hudson/plugins/warnings/parser/MsBuildParserTest.java
          src/test/resources/hudson/plugins/warnings/parser/issue14888.txt
          http://jenkins-ci.org/commit/warnings-plugin/f1df58dc45ad1a30d1fa7aac5e3c5352531f77f1
          Log:
          [FIXED JENKINS-14888] Added testcase. Bug seems to be fixed already.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/test/java/hudson/plugins/warnings/parser/MsBuildParserTest.java src/test/resources/hudson/plugins/warnings/parser/issue14888.txt http://jenkins-ci.org/commit/warnings-plugin/f1df58dc45ad1a30d1fa7aac5e3c5352531f77f1 Log: [FIXED JENKINS-14888] Added testcase. Bug seems to be fixed already.

          qiu gj added a comment -

          Thanks for help.But I don't know how to use this patch code. I am a mere java beginner.

          According the Warning plugin's help doc, I added a new parse called lint, as showed in attached file:

          And in Hudson » ws_cppcheck_user_1 » Static Analysis Warnings » Configure Default Trend Graph:
          I checked the "Priority distribution of all warnings " graph type.and not check "Aggregate per day".
          Then the Warning plugin detected the PCLint check results.But it did not produce the trend graph in the dashboard.
          Would you give me some guide.Thanks.

          BTW:I feel sorry for my poor English.

          qiu gj added a comment - Thanks for help.But I don't know how to use this patch code. I am a mere java beginner. According the Warning plugin's help doc, I added a new parse called lint, as showed in attached file: And in Hudson » ws_cppcheck_user_1 » Static Analysis Warnings » Configure Default Trend Graph: I checked the "Priority distribution of all warnings " graph type.and not check "Aggregate per day". Then the Warning plugin detected the PCLint check results.But it did not produce the trend graph in the dashboard. Would you give me some guide.Thanks. BTW:I feel sorry for my poor English.

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          src/main/java/hudson/plugins/warnings/WarningsResult.java
          http://jenkins-ci.org/commit/warnings-plugin/60de2180bb6cefff49e3208be65a7dc1999a35bd
          Log:
          JENKINS-14888 Don't store results for aggregation result.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/hudson/plugins/warnings/WarningsResult.java http://jenkins-ci.org/commit/warnings-plugin/60de2180bb6cefff49e3208be65a7dc1999a35bd Log: JENKINS-14888 Don't store results for aggregation result.

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          src/main/java/hudson/plugins/warnings/WarningsResult.java
          src/test/java/hudson/plugins/warnings/WarningsResultTest.java
          http://jenkins-ci.org/commit/warnings-plugin/b485114f9d01d0605188f4595aa27681087cc4ae
          Log:
          JENKINS-14888 Improved filename.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/hudson/plugins/warnings/WarningsResult.java src/test/java/hudson/plugins/warnings/WarningsResultTest.java http://jenkins-ci.org/commit/warnings-plugin/b485114f9d01d0605188f4595aa27681087cc4ae Log: JENKINS-14888 Improved filename.

            drulli Ulli Hafner
            odissey_q qiu gj
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: