dk.hlyh.ciplugins.projecthealth
Class ProjectHealthProjectAction

java.lang.Object
  extended by dk.hlyh.ciplugins.projecthealth.ProjectHealthProjectAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject

public final class ProjectHealthProjectAction
extends java.lang.Object
implements hudson.model.Action

Shows statistics about project health and which test cases fail the most.

Author:
Henrik Lynggaard Hansen

Constructor Summary
ProjectHealthProjectAction(hudson.model.AbstractProject<?,?> project)
           
 
Method Summary
 hudson.util.RunList<?> getAllBuilds()
          The a list of all known builds for building the dropdown lists.
 java.lang.String getDisplayName()
           
 java.lang.String getFailurePie()
           
 java.util.List<TestFailure> getFailures()
           
 hudson.model.Run<?,?> getFirstbuild()
           
 boolean getHasFailures()
           
 java.lang.String getIconFileName()
           
 hudson.model.Run<?,?> getLastbuild()
           
 int getNumberOfBuilds()
          Get the number of builds included in the report
 long getNumberOfFailedBuilds()
          Get the number of failed builds in the report.
 long getNumberOfSuccessBuilds()
           
 java.lang.String getOverviewPie()
           
 hudson.model.AbstractProject<?,?> getProject()
           
 java.lang.String getUrlName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectHealthProjectAction

public ProjectHealthProjectAction(hudson.model.AbstractProject<?,?> project)
Method Detail

getIconFileName

public java.lang.String getIconFileName()
Specified by:
getIconFileName in interface hudson.model.Action

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject

getUrlName

public java.lang.String getUrlName()
Specified by:
getUrlName in interface hudson.model.Action

getProject

public final hudson.model.AbstractProject<?,?> getProject()

getAllBuilds

public hudson.util.RunList<?> getAllBuilds()
The a list of all known builds for building the dropdown lists. Note: This method also does caching of the builds relevant for this report. It is done here because it is the firt method called by the page.

Returns:
A list of all the builds

getNumberOfBuilds

public int getNumberOfBuilds()
Get the number of builds included in the report

Returns:
The number of builds

getNumberOfFailedBuilds

public long getNumberOfFailedBuilds()
Get the number of failed builds in the report. A build is considered failed if the result is worse than SUCCESS i.e unstable builds are considered failed.

Returns:
The number of failed builds.

getNumberOfSuccessBuilds

public long getNumberOfSuccessBuilds()

getHasFailures

public boolean getHasFailures()

getFirstbuild

public hudson.model.Run<?,?> getFirstbuild()

getLastbuild

public hudson.model.Run<?,?> getLastbuild()

getOverviewPie

public java.lang.String getOverviewPie()

getFailurePie

public java.lang.String getFailurePie()

getFailures

public java.util.List<TestFailure> getFailures()


Copyright © 2011. All Rights Reserved.