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

[maven projects] Build health and threshold evaluation is broken

    Details

      Description

      For findbugs to cause a build to fail when high-priority issues exist, in the
      advanced part of "Publish FindBugs analysis results" you should be able to
      choose Priority Evaluation to be "Only priority high" and then put a threshold
      of 0 in the red fail Total box.

      However, when I do this and a single high-priority issue is found the build
      fails due to an internal hudson error:

      [INFO] [findbugs:findbugs

      {execution: default-cli}

      ]
      [INFO] No effort provided, using default effort.
      [INFO] No threshold provided, using default threshold.
      [INFO] Using FindBugs Version: 1.2.1
      [INFO] No threshold provided, using default threshold.
      [INFO] No threshold provided, using default threshold.
      [INFO] No threshold provided, using default threshold.
      [INFO] Using the xdoc format
      [INFO] No effort provided, using default effort.
      [INFO] No threshold provided, using default threshold.
      [INFO] No threshold provided, using default threshold.
      [INFO] Debugging is Off
      [INFO] No bug include filter.
      [INFO] No bug exclude filter.
      [INFO] Printing Errors
      [INFO] Printing Missing classes
      [INFO] Printing Source Roots
      log4j:WARN No appenders could be found for logger
      (org.apache.commons.digester.Digester.sax).
      log4j:WARN Please initialize the log4j system properly.
      [FINDBUGS] Successfully parsed file ... of module
      $

      {moduleName}

      .$

      {project.version}

      with 790 warnings.
      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] null
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      java.lang.reflect.UndeclaredThrowableException
      at $Proxy2.end(Unknown Source)
      at hudson.maven.MavenBuildProxy2$Filter.end(MavenBuildProxy2.java:67)
      at
      hudson.maven.MavenModuleSetBuild$Builder.postModule(MavenModuleSetBuild.java:726)
      at hudson.maven.MavenBuilder$Adapter.fireLeaveModule(MavenBuilder.java:304)
      at hudson.maven.MavenBuilder$Adapter.postBuild(MavenBuilder.java:262)
      at
      org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:68)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:592)
      at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      at hudson.maven.agent.Main.launch(Main.java:165)
      at hudson.maven.MavenBuilder.call(MavenBuilder.java:159)
      at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:689)
      at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:633)
      at hudson.remoting.UserRequest.perform(UserRequest.java:104)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:250)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
      at java.util.concurrent.FutureTask.run(FutureTask.java:123)
      at
      java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: java.io.IOException: Remote call failed
      at hudson.remoting.Channel.call(Channel.java:556)
      at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:158)
      ... 28 more
      Caused by: java.lang.AssertionError
      at hudson.model.Run.setResult(Run.java:291)
      at
      hudson.plugins.findbugs.util.AbstractResultAction.updateBuildHealth(AbstractResultAction.java:246)
      at
      hudson.plugins.findbugs.MavenFindBugsResultAction.update(MavenFindBugsResultAction.java:93)
      at hudson.maven.MavenModuleSetBuild.notifyModuleBuild(MavenModuleSetBuild.java:350)
      at hudson.maven.MavenBuild$ProxyImpl2.end(MavenBuild.java:419)
      at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:592)
      at hudson.model.Executor$1.call(Executor.java:376)
      at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23)
      at $Proxy14.end(Unknown Source)
      at sun.reflect.GeneratedMethodAccessor343.invoke(Unknown Source)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:592)
      at
      hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
      at
      hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
      at
      hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
      ... 9 more
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 5 minutes 8 seconds
      [INFO] Finished at: Fri Nov 20 04:56:06 EST 2009 [INFO] Final Memory: 123M/995M
      [INFO]

        Issue Links

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          src/main/java/hudson/plugins/checkstyle/CheckStyleMavenResult.java
          src/main/java/hudson/plugins/checkstyle/CheckStyleMavenResultAction.java
          src/main/java/hudson/plugins/checkstyle/CheckStyleReporter.java
          src/main/java/hudson/plugins/checkstyle/MavenCheckStyleResultAction.java
          http://jenkins-ci.org/commit/checkstyle-plugin/d49cbea93fc2e06975740946fa2d0e5793402fc8
          Log:
          JENKINS-4912 Created new action base class for maven aggregation.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/hudson/plugins/checkstyle/CheckStyleMavenResult.java src/main/java/hudson/plugins/checkstyle/CheckStyleMavenResultAction.java src/main/java/hudson/plugins/checkstyle/CheckStyleReporter.java src/main/java/hudson/plugins/checkstyle/MavenCheckStyleResultAction.java http://jenkins-ci.org/commit/checkstyle-plugin/d49cbea93fc2e06975740946fa2d0e5793402fc8 Log: JENKINS-4912 Created new action base class for maven aggregation.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          plugin/src/main/java/hudson/plugins/findbugs/FindBugsMavenResult.java
          plugin/src/main/java/hudson/plugins/findbugs/FindBugsMavenResultAction.java
          plugin/src/main/java/hudson/plugins/findbugs/FindBugsReporter.java
          plugin/src/main/java/hudson/plugins/findbugs/MavenFindBugsResultAction.java
          http://jenkins-ci.org/commit/findbugs-plugin/77661da54d46db3487b9122c59cf548624554216
          Log:
          JENKINS-4912 Created new action base class for maven aggregation.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: plugin/src/main/java/hudson/plugins/findbugs/FindBugsMavenResult.java plugin/src/main/java/hudson/plugins/findbugs/FindBugsMavenResultAction.java plugin/src/main/java/hudson/plugins/findbugs/FindBugsReporter.java plugin/src/main/java/hudson/plugins/findbugs/MavenFindBugsResultAction.java http://jenkins-ci.org/commit/findbugs-plugin/77661da54d46db3487b9122c59cf548624554216 Log: JENKINS-4912 Created new action base class for maven aggregation.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          src/main/java/hudson/plugins/pmd/MavenPmdResultAction.java
          src/main/java/hudson/plugins/pmd/PmdMavenResult.java
          src/main/java/hudson/plugins/pmd/PmdMavenResultAction.java
          src/main/java/hudson/plugins/pmd/PmdReporter.java
          http://jenkins-ci.org/commit/pmd-plugin/428235492b0f7512709d512be8bb8a97227c31c8
          Log:
          JENKINS-4912 Created new action base class for maven aggregation.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/hudson/plugins/pmd/MavenPmdResultAction.java src/main/java/hudson/plugins/pmd/PmdMavenResult.java src/main/java/hudson/plugins/pmd/PmdMavenResultAction.java src/main/java/hudson/plugins/pmd/PmdReporter.java http://jenkins-ci.org/commit/pmd-plugin/428235492b0f7512709d512be8bb8a97227c31c8 Log: JENKINS-4912 Created new action base class for maven aggregation.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          src/main/java/hudson/plugins/tasks/MavenTasksResultAction.java
          src/main/java/hudson/plugins/tasks/TasksMavenResult.java
          src/main/java/hudson/plugins/tasks/TasksMavenResultAction.java
          src/main/java/hudson/plugins/tasks/TasksReporter.java
          http://jenkins-ci.org/commit/tasks-plugin/39d025dd0cc38a73f046e48e27e842768736a831
          Log:
          JENKINS-4912 Created new action base class for maven aggregation.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/hudson/plugins/tasks/MavenTasksResultAction.java src/main/java/hudson/plugins/tasks/TasksMavenResult.java src/main/java/hudson/plugins/tasks/TasksMavenResultAction.java src/main/java/hudson/plugins/tasks/TasksReporter.java http://jenkins-ci.org/commit/tasks-plugin/39d025dd0cc38a73f046e48e27e842768736a831 Log: JENKINS-4912 Created new action base class for maven aggregation.
          Hide
          saihegde Sai Hegde added a comment -

          I have a project configured on Jenkins v1.424
          Since I have the 'Incremental build - only build changed modules' option checked, this shows the warnings only for the current build ignoring all from the previous build.

          Show
          saihegde Sai Hegde added a comment - I have a project configured on Jenkins v1.424 Since I have the 'Incremental build - only build changed modules' option checked, this shows the warnings only for the current build ignoring all from the previous build.

            People

            • Assignee:
              drulli Ulli Hafner
              Reporter:
              jhod jhod
            • Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: