maps.hudson.plugin.xfpanel
Class XFPanelView.XFPanelEntry
java.lang.Object
maps.hudson.plugin.xfpanel.XFPanelView.XFPanelEntry
- Enclosing class:
- XFPanelView
public final class XFPanelView.XFPanelEntry
- extends java.lang.Object
Represents a job to be shown on the panel
Intermediates access to data available for the given Job
- Author:
- jrenaut
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XFPanelView.XFPanelEntry
public XFPanelView.XFPanelEntry(hudson.model.Job<?,?> job)
- C'tor
- Parameters:
job - the job to be represented
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
getNumberOfFailedBuilds
public int getNumberOfFailedBuilds()
- Returns:
- number of failed builds since last successful build
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 all
possible commiters of a given build
- Returns:
- the culprits/responsibles
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
Copyright © 2004-2012 Hudson. All Rights Reserved.