hudson.model
Class ViewEntry
java.lang.Object
hudson.model.ViewEntry
public final class ViewEntry
- extends java.lang.Object
Represents a job to be shown in a view. Based heavily on the XFPanelEntry in
XFPanel plugin.
- Author:
- jrenaut
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewEntry
public ViewEntry(RadiatorView radiatorView,
hudson.model.Job<?,?> job)
- C'tor
- Parameters:
job - the job to be representedradiatorView - TODO
getJob
public hudson.model.Job<?,?> getJob()
- Returns:
- the job
getName
public java.lang.String getName()
- Returns:
- the job's name
getQueued
public java.lang.Boolean getQueued()
- Returns:
- if this job is queued for build
getQueueNumber
public java.lang.Integer getQueueNumber()
- Returns:
- the job's queue number, if any
getBackgroundColor
public java.lang.String getBackgroundColor()
- Returns:
- background color for this job
getColor
public java.lang.String getColor()
- Returns:
- foreground color for this job
getBroken
public java.lang.Boolean getBroken()
- Returns:
- true se o ??ltimo build est?? quebrado
getBuilding
public java.lang.Boolean getBuilding()
- Returns:
- true if this job is currently being built
getUrl
public java.lang.String getUrl()
- Returns:
- the URL for the last build
getBuildsInProgress
public java.util.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
getDiff
public java.lang.String getDiff()
- Returns:
- difference between this job's last build successful tests and the
previous'
getCulprit
public java.lang.String getCulprit()
- Elects a culprit/responsible for a broken build by choosing the last
commiter of a given build
- Returns:
- the culprit/responsible
getDiffColor
public java.lang.String getDiffColor()
- Returns:
- color to be used to show the test diff
getSuccessPercentage
public java.lang.String getSuccessPercentage()
- Returns:
- the percentage of successful tests versus the total
getLastCompletedBuild
public java.lang.String getLastCompletedBuild()
getLastStableBuild
public java.lang.String getLastStableBuild()
getStable
public boolean getStable()
- Returns:
true if the build is stable.
Copyright © 2010. All Rights Reserved.