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

CCCC plugin fails on non-default root directory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: cccc-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      I am using Hudson on Windows. My project name is "crackpot" and check out code
      into workspace/crackpot_root_dir. When I specify CCCC metric path as
      crackpot_root_dir/.cccc/cccc.xml or .cccc/cccc.xml, I get:

      Parsing cccc results
      hudson.AbortException: Parsing file error
      at com.thalesgroup.hudson.plugins.cccc.CccccParser.invoke(CccccParser.java:76)
      at com.thalesgroup.hudson.plugins.cccc.CccccParser.invoke(CccccParser.java:50)
      at hudson.FilePath.act(FilePath.java:676)
      at hudson.FilePath.act(FilePath.java:660)
      at com.thalesgroup.hudson.plugins.cccc.CcccPublisher.perform(CcccPublisher.java:83)
      at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:480)
      at
      hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:466)
      at
      hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:454)
      at hudson.model.Build$RunnerImpl.post2(Build.java:146)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:438)
      at hudson.model.Run.run(Run.java:1146)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:123)

        Attachments

        1. cccc.xml
          6 kB
        2. config.xml
          3 kB

          Activity

          Hide
          gbois Gregory Boissinot added a comment -

          Could you send me your CCCC report file (cccc.xml) and your Hudson job configuration file (config.xml)?

          Show
          gbois Gregory Boissinot added a comment - Could you send me your CCCC report file (cccc.xml) and your Hudson job configuration file (config.xml)?
          Hide
          nicholas_yue nicholas_yue added a comment -

          I have a similar problem with using the plugin

          [100%] Built target demo
          Parsing cccc results
          hudson.AbortException: Parsing file error
          at com.thalesgroup.hudson.plugins.cccc.CccccParser.invoke(CccccParser.java:69)
          at com.thalesgroup.hudson.plugins.cccc.CccccParser.invoke(CccccParser.java:43)
          at hudson.FilePath.act(FilePath.java:753)
          at hudson.FilePath.act(FilePath.java:735)
          at com.thalesgroup.hudson.plugins.cccc.CcccPublisher.perform(CcccPublisher.java:72)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
          at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
          at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580)
          at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558)
          at hudson.model.Build$RunnerImpl.post2(Build.java:157)
          at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
          at hudson.model.Run.run(Run.java:1296)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:137)
          Finished: FAILURE

          I will attach the cccc.xml and config.xml file

          Show
          nicholas_yue nicholas_yue added a comment - I have a similar problem with using the plugin [100%] Built target demo Parsing cccc results hudson.AbortException: Parsing file error at com.thalesgroup.hudson.plugins.cccc.CccccParser.invoke(CccccParser.java:69) at com.thalesgroup.hudson.plugins.cccc.CccccParser.invoke(CccccParser.java:43) at hudson.FilePath.act(FilePath.java:753) at hudson.FilePath.act(FilePath.java:735) at com.thalesgroup.hudson.plugins.cccc.CcccPublisher.perform(CcccPublisher.java:72) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558) at hudson.model.Build$RunnerImpl.post2(Build.java:157) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1296) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:137) Finished: FAILURE I will attach the cccc.xml and config.xml file
          Hide
          nicholas_yue nicholas_yue added a comment -

          These are my configuration for the error I just reported on 26/Sep/2010

          Show
          nicholas_yue nicholas_yue added a comment - These are my configuration for the error I just reported on 26/Sep/2010
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/com/thalesgroup/hudson/plugins/cccc/CcccChartBuilder.java
          src/main/java/com/thalesgroup/hudson/plugins/cccc/CcccPublisher.java
          src/main/java/com/thalesgroup/hudson/plugins/cccc/CccccParser.java
          src/test/resource/cccc1/Expression.html
          src/test/resource/cccc1/Expression.xml
          src/test/resource/cccc1/Math.html
          src/test/resource/cccc1/Math.xml
          src/test/resource/cccc1/Message.html
          src/test/resource/cccc1/Message.xml
          src/test/resource/cccc1/anonymous.html
          src/test/resource/cccc1/anonymous.xml
          src/test/resource/cccc1/cccc.html
          src/test/resource/cccc1/cccc.xml
          src/test/resource/cccc1/cccc_src.html
          src/test/resource/cccc2/App.html
          src/test/resource/cccc2/App.xml
          src/test/resource/cccc2/String[].html
          src/test/resource/cccc2/String[].xml
          src/test/resource/cccc2/cccc.html
          src/test/resource/cccc2/cccc.xml
          src/test/resource/cccc2/cccc_src.html
          http://jenkins-ci.org/commit/cccc-plugin/75c6c09e54af1b17f3151db30633aa8a5ce5887f
          Log:
          Fixed JENKINS-4584

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/com/thalesgroup/hudson/plugins/cccc/CcccChartBuilder.java src/main/java/com/thalesgroup/hudson/plugins/cccc/CcccPublisher.java src/main/java/com/thalesgroup/hudson/plugins/cccc/CccccParser.java src/test/resource/cccc1/Expression.html src/test/resource/cccc1/Expression.xml src/test/resource/cccc1/Math.html src/test/resource/cccc1/Math.xml src/test/resource/cccc1/Message.html src/test/resource/cccc1/Message.xml src/test/resource/cccc1/anonymous.html src/test/resource/cccc1/anonymous.xml src/test/resource/cccc1/cccc.html src/test/resource/cccc1/cccc.xml src/test/resource/cccc1/cccc_src.html src/test/resource/cccc2/App.html src/test/resource/cccc2/App.xml src/test/resource/cccc2/String[].html src/test/resource/cccc2/String[].xml src/test/resource/cccc2/cccc.html src/test/resource/cccc2/cccc.xml src/test/resource/cccc2/cccc_src.html http://jenkins-ci.org/commit/cccc-plugin/75c6c09e54af1b17f3151db30633aa8a5ce5887f Log: Fixed JENKINS-4584

            People

            Assignee:
            gbois Gregory Boissinot
            Reporter:
            in4tunio in4tunio
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: