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

Task scanning fails with plugin version 4.12

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Not A Defect
    • Component/s: tasks-plugin
    • Labels:
      None
    • Environment:
      Linux Red Hat Enterprise Linux - 2.6.9-55.0.2.ELhugemem #1 SMP Tue Jun 12 18:11:10 EDT 2007 i686 i686 i386 GNU/Linux
      Hudson ver. 1.362
    • Similar Issues:

      Description

      Updated Task Scanner Plug-in to version 4.12 and Static Analysis Utilities to version 1.15.

      After this there were some errors in our metrics job in Hudson (none of the graphs worked), so I cleared the workspace and build the job again. After this the Task Scanner fails with the following message:

      [TASKS] Scanning workspace files for tasks...
      FATAL: com.google.common.collect.ImmutableList.copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableList;
      java.lang.NoSuchMethodError: com.google.common.collect.ImmutableList.copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableList;
      at hudson.plugins.analysis.core.ParserResult.getErrorMessages(ParserResult.java:290)
      at hudson.plugins.analysis.core.BuildResult.initialize(BuildResult.java:240)
      at hudson.plugins.analysis.core.BuildResult.<init>(BuildResult.java:206)
      at hudson.plugins.tasks.TasksResult.<init>(TasksResult.java:56)
      at hudson.plugins.tasks.TasksPublisher.perform(TasksPublisher.java:201)
      at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:280)
      at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
      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:158)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
      at hudson.model.Run.run(Run.java:1276)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:124)

        Attachments

          Activity

          Hide
          tiainpa tiainpa added a comment -

          Additional note, not sure if this relates to task scanner plugin specifically: I updated bunch of other metrics plugins at the same time as I updated task scanner and static analysis utilities, and now no job configuration loads properly!

          The configure page starts to load okay, but is soon stuck forever, never finishing loading completely.

          Show
          tiainpa tiainpa added a comment - Additional note, not sure if this relates to task scanner plugin specifically: I updated bunch of other metrics plugins at the same time as I updated task scanner and static analysis utilities, and now no job configuration loads properly! The configure page starts to load okay, but is soon stuck forever, never finishing loading completely.
          Hide
          drulli Ulli Hafner added a comment -

          Well, seems that you are using an incompatible Hudson release (it's from august last year). The new analysis plug-ins require a more recent version of Hudson. The missing classes should be part of the new Hudson release.

          Show
          drulli Ulli Hafner added a comment - Well, seems that you are using an incompatible Hudson release (it's from august last year). The new analysis plug-ins require a more recent version of Hudson. The missing classes should be part of the new Hudson release.
          Hide
          tiainpa tiainpa added a comment -

          This might be true, but for some reason the requirement for newer Hudson is not stated in the update center for Static Code Analysis Plug-in.

          So this issue should be closed and there should be another one created for Static Code Analysis Plug-in in order to warn the users of the older Hudson versions against updating the plugin before a newer Hudson is installed.

          Without this error our metrics job failed to finish, the graphs of the metrics job were lost, configuration page of any job in Hudson failed to load completely and it wasn't possible to trigger some jobs - so the warning about update should always be there if there is a need for it!

          Thanks for the analysis drulli!

          Show
          tiainpa tiainpa added a comment - This might be true, but for some reason the requirement for newer Hudson is not stated in the update center for Static Code Analysis Plug-in. So this issue should be closed and there should be another one created for Static Code Analysis Plug-in in order to warn the users of the older Hudson versions against updating the plugin before a newer Hudson is installed. Without this error our metrics job failed to finish, the graphs of the metrics job were lost, configuration page of any job in Hudson failed to load completely and it wasn't possible to trigger some jobs - so the warning about update should always be there if there is a need for it! Thanks for the analysis drulli!

            People

            • Assignee:
              drulli Ulli Hafner
              Reporter:
              tiainpa tiainpa
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: