maps.hudson.plugin.xfpanel
Class XFPanelEntry

java.lang.Object
  extended by maps.hudson.plugin.xfpanel.XFPanelEntry

public final class XFPanelEntry
extends Object

Represents a job to be shown on the panel Intermediates access to data available for the given Job

Author:
jrenaut

Constructor Summary
XFPanelEntry(XFPanelView view, hudson.model.Job<?,?> job)
          C'tor
 
Method Summary
 String convertCulpritsToString(HashSet<hudson.model.User> input)
           
 String getBackgroundColor()
           
 Boolean getBroken()
           
 Boolean getBuilding()
           
 List<hudson.model.Run<?,?>> getBuildsInProgress()
           
 String getBuildStatus(hudson.model.AbstractBuild<?,?> build)
           
 hudson.tasks.junit.TestResult getClaimedTestCases()
           
 String getClaimInfo()
          If the claims plugin is installed, this will get details of the claimed build failures.
 String getClaimInfoByTestCases()
           
 String getColor()
           
 String getColorFade()
           
 Calendar getCompletionTimestamp()
           
 String getCompletionTimestampString()
           
 HashSet<hudson.model.User> getCulpritFromBuild(hudson.model.AbstractBuild<?,?> build)
          Elects culprit(s)/responsible(s) for a broken build by choosing the last commiter of a given build
 String getCulprits()
           
 String getDiff()
           
 String getDiffColor()
           
 int getFailCount()
           
 hudson.model.Job<?,?> getJob()
           
 hudson.model.AbstractBuild<?,?> getLastBuild()
           
 int getLastCompletedBuildNumber()
           
 String getLastCompletedBuildTimestampString()
           
 String getName()
           
 int getNumberOfFailedBuilds()
           
 String getNumberOfTests()
          Returns number of failed tests or number of unclaimed failed tests
 int getNumClaimedTests()
           
 Boolean getQueued()
           
 Integer getQueueNumber()
           
 Boolean getShowResponsibles()
           
 int getSuccessCount()
           
 String getSuccessPercentage()
           
 int getTestCount()
           
 String getUrl()
           
 XFPanelView getView()
           
 boolean isBuildSuccessful()
           
 boolean isBuildUnstable()
           
 boolean isClaimed()
           
 void setCompletionTimestamp(Calendar completionTimestamp)
           
 void setCompletionTimestampString(String completionTimestampString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XFPanelEntry

public XFPanelEntry(XFPanelView view,
                    hudson.model.Job<?,?> job)
C'tor

Parameters:
job - the job to be represented
Method Detail

getJob

public hudson.model.Job<?,?> getJob()
Returns:
the job

getName

public String getName()
Returns:
the job's name

getQueued

public Boolean getQueued()
Returns:
if this job is queued for build

getQueueNumber

public Integer getQueueNumber()
Returns:
the job's queue number, if any

getLastBuild

public hudson.model.AbstractBuild<?,?> getLastBuild()

setCompletionTimestamp

public void setCompletionTimestamp(Calendar completionTimestamp)

getCompletionTimestamp

public Calendar getCompletionTimestamp()

setCompletionTimestampString

public void setCompletionTimestampString(String completionTimestampString)

getCompletionTimestampString

public String getCompletionTimestampString()

getBackgroundColor

public String getBackgroundColor()
Returns:
background color for this job

getColor

public String getColor()
Returns:
foreground color for this job

getColorFade

public String getColorFade()
Returns:
fadeout image name for this job

getBroken

public Boolean getBroken()
Returns:
true se o último build está quebrado

getShowResponsibles

public Boolean getShowResponsibles()
Returns:
1 on success

getBuilding

public Boolean getBuilding()
Returns:
true if this job is currently being built

getUrl

public String getUrl()
Returns:
the URL for the last build

getBuildsInProgress

public List<hudson.model.Run<?,?>> getBuildsInProgress()
Returns:
a list will all the currently building runs for this job.

getTestCount

public int getTestCount()
Returns:
total tests executed

getFailCount

public int getFailCount()
Returns:
total failed tests

getSuccessCount

public int getSuccessCount()
Returns:
total successful tests

getLastCompletedBuildNumber

public int getLastCompletedBuildNumber()

getLastCompletedBuildTimestampString

public String getLastCompletedBuildTimestampString()

getNumberOfFailedBuilds

public int getNumberOfFailedBuilds()
Returns:
number of failed builds since the last successful build

getDiff

public String getDiff()
Returns:
difference between this job's last build successful tests and the previous'

getCulpritFromBuild

public HashSet<hudson.model.User> getCulpritFromBuild(hudson.model.AbstractBuild<?,?> build)
Elects culprit(s)/responsible(s) for a broken build by choosing the last commiter of a given build

Returns:
the culprit(s)/responsible(s)

convertCulpritsToString

public String convertCulpritsToString(HashSet<hudson.model.User> input)

getCulprits

public String getCulprits()

isClaimed

public boolean isClaimed()
Returns:
whether build is claimed or not

getClaimInfo

public String getClaimInfo()
If the claims plugin is installed, this will get details of the claimed build failures.

Returns:
details of any claims for the broken build, or null if nobody has claimed this build.

getClaimedTestCases

public hudson.tasks.junit.TestResult getClaimedTestCases()

getClaimInfoByTestCases

public String getClaimInfoByTestCases()

getNumClaimedTests

public int getNumClaimedTests()

getNumberOfTests

public String getNumberOfTests()
Returns number of failed tests or number of unclaimed failed tests


getDiffColor

public String getDiffColor()
Returns:
color to be used to show the test diff

getSuccessPercentage

public String getSuccessPercentage()
Returns:
the percentage of successful tests versus the total

getBuildStatus

public String getBuildStatus(hudson.model.AbstractBuild<?,?> build)

isBuildSuccessful

public boolean isBuildSuccessful()

isBuildUnstable

public boolean isBuildUnstable()

getView

public XFPanelView getView()
Returns:
view of this entry


Copyright © 2004-2015. All Rights Reserved.