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

CCM result in build shows only top 15 methods even though CCM is configured for 100

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: ccm-plugin
    • Labels:
      None
    • Environment:
      Ubuntu master / Windows 7 slave

      Description

      I configured CCM to show 100 methods in "Number of metrics". However in the results I only see 15 methods. Screenshots are attached

      1. result.png
        78 kB
      2. settings.png
        21 kB

        Activity

        Hide
        kinow Bruno P. Kinoshita added a comment -

        Hi Samuele!

        Thanks for reporting, I'll have a look on it as soon as I find some spare time.

        I've been wanting to release a new version and use analysis-core plugin API (like emma, violations, pmd, etc) for a while. I'll fix the issues reported by you and cut a new release soon

        Thanks

        Show
        kinow Bruno P. Kinoshita added a comment - Hi Samuele! Thanks for reporting, I'll have a look on it as soon as I find some spare time. I've been wanting to release a new version and use analysis-core plugin API (like emma, violations, pmd, etc) for a while. I'll fix the issues reported by you and cut a new release soon Thanks
        Hide
        samgan Samuele Gantner added a comment -

        Hi Bruno,

        actually thank you for your quick response and for taking the time to look into this. You guys are doing an amazing job and we couldn't live (well work) without Jenkins.

        I'm looking forward to the new version!

        Cheers,
        Sam

        Show
        samgan Samuele Gantner added a comment - Hi Bruno, actually thank you for your quick response and for taking the time to look into this. You guys are doing an amazing job and we couldn't live (well work) without Jenkins. I'm looking forward to the new version! Cheers, Sam
        Hide
        kinow Bruno P. Kinoshita added a comment -

        Hi again Samuele!

        I've refactored CCM Plug-in to be used like other static analysis plug-ins (https://wiki.jenkins-ci.org/display/JENKINS/Static+Code+Analysis+Plug-ins).

        As a result of this change, the plug-in now is not a Builder anymore, but a Publisher. It means, basically, that the plug-in is not invoked during the build anymore, but after all the build steps have finished. So now you have to use MSBuild, or add a Windows batch command to invoke CCM, and output in XML. Then enable CCM.

        However, the bright side of this is that the UI is the same as PMD, Tasks, FindBugs and other plug-ins configured using analysis-core (yup, you have to install this one first, I know it can be inconvenient, but it's worth .

        There are more graphics in the dashboard available now, as well as better organization of results.

        Could you give it a try again?

        Sorry for taking this decision without letting you know first. I created CCM plug-in before the analysis-core and other static analysis plug-ins were released, and it was my first plug-in. That's why I had to do such change.

        Thank you!
        Bruno

        ps: CTRL+C CTRL+V, sorry

        Show
        kinow Bruno P. Kinoshita added a comment - Hi again Samuele! I've refactored CCM Plug-in to be used like other static analysis plug-ins ( https://wiki.jenkins-ci.org/display/JENKINS/Static+Code+Analysis+Plug-ins ). As a result of this change, the plug-in now is not a Builder anymore, but a Publisher. It means, basically, that the plug-in is not invoked during the build anymore, but after all the build steps have finished. So now you have to use MSBuild, or add a Windows batch command to invoke CCM, and output in XML. Then enable CCM. However, the bright side of this is that the UI is the same as PMD, Tasks, FindBugs and other plug-ins configured using analysis-core (yup, you have to install this one first, I know it can be inconvenient, but it's worth . There are more graphics in the dashboard available now, as well as better organization of results. Could you give it a try again? Sorry for taking this decision without letting you know first. I created CCM plug-in before the analysis-core and other static analysis plug-ins were released, and it was my first plug-in. That's why I had to do such change. Thank you! Bruno ps: CTRL+C CTRL+V, sorry
        Hide
        kinow Bruno P. Kinoshita added a comment -

        CCM plug-in 3.0 should have this issue fixed.

        Show
        kinow Bruno P. Kinoshita added a comment - CCM plug-in 3.0 should have this issue fixed.
        Hide
        kinow Bruno P. Kinoshita added a comment -

        No user feedback, but the fix has been released in 3.0. Feel free to reopen this issue if it is still occurring.

        Show
        kinow Bruno P. Kinoshita added a comment - No user feedback, but the fix has been released in 3.0. Feel free to reopen this issue if it is still occurring.

          People

          • Assignee:
            kinow Bruno P. Kinoshita
            Reporter:
            samgan Samuele Gantner
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: