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

[maven projects] Build health and threshold evaluation is broken

XMLWordPrintable

      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]

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

              Created:
              Updated:
              Resolved: