Class AbstractStatusesColumn
java.lang.Object
hudson.views.ListViewColumn
com.robestone.hudson.compactcolumns.AbstractCompactColumn
com.robestone.hudson.compactcolumns.AbstractStatusesColumn
- All Implemented Interfaces:
ExtensionPoint
,Describable<ListViewColumn>
- Direct Known Subclasses:
AllStatusesColumn
,LastStableAndUnstableColumn
,LastSuccessAndFailedColumn
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static String
formatDate
(TemporalAccessor date, Locale locale) I want to use 4-digit years (for clarity), and that doesn't work out of the box...protected static String
formatDateTime
(TemporalAccessor date, Locale locale) protected static String
formatTime
(TemporalAccessor date, Locale locale) static final String
static final String
getBuildDescriptionToolTip
(BuildInfo build, Locale locale) getBuilds
(Job<?, ?> job, Locale locale, boolean isFailedShownOnlyIfLast, boolean isUnstableShownOnlyIfLast, boolean isOnlyShowLastStatus, boolean isShowColorblindUnderlineHint, AbstractStatusesColumn.TimeAgoType timeAgoType, int hideDays) protected static String
getBuildTimeString
(long timeMs, Locale locale) protected static String
getBuildTimeString
(long timeMs, Locale locale, boolean addDate, boolean addTime, boolean useDefaultFormat) getColumnSortData
(Job<?, ?> job) static final String
int
static BuildInfo
getLastFailedBuild
(Job<?, ?> job, Locale locale, boolean onlyIfLastCompleted, boolean isShowColorblindUnderlineHint, boolean isFirst, AbstractStatusesColumn.TimeAgoType timeAgoType) static BuildInfo
getLastStableBuild
(Job<?, ?> job, Locale locale, boolean isShowColorblindUnderlineHint, boolean isFirst, AbstractStatusesColumn.TimeAgoType timeAgoType) static BuildInfo
getLastUnstableBuild
(Job<?, ?> job, Locale locale, boolean isUnstableShownOnlyIfLast, boolean isShowColorblindUnderlineHint, boolean isFirst, AbstractStatusesColumn.TimeAgoType timeAgoType) protected static float
getRoundedNumber
(float number) protected static String
getShortTimestamp
(float time) Avoids having "2 days 3 hours" and instead does "2.1 days".static final String
protected static String
getTimeAgoString
(Locale locale, long timestamp, boolean isMultiple, AbstractStatusesColumn.TimeAgoType timeAgoType) final String
getToolTip
(BuildInfo build, Locale locale) static final String
boolean
isBuildsEmpty
(Job<?, ?> job) protected abstract boolean
boolean
protected abstract boolean
Methods inherited from class com.robestone.hudson.compactcolumns.AbstractCompactColumn
getColorblindHint, isShowColorblindUnderlineHint
Methods inherited from class hudson.views.ListViewColumn
all, createDefaultInitialColumnList, createDefaultInitialColumnList, createDefaultInitialColumnList, getColumnCaption, getDescriptor, shownByDefault
-
Field Details
-
OTHER_UNDERLINE_STYLE
- See Also:
-
UNSTABLE_UNDERLINE_STYLE
- See Also:
-
STABLE_UNDERLINE_STYLE
- See Also:
-
FAILED_UNDERLINE_STYLE
- See Also:
-
-
Constructor Details
-
AbstractStatusesColumn
-
-
Method Details
-
getBuilds
public static List<BuildInfo> getBuilds(Job<?, ?> job, Locale locale, boolean isFailedShownOnlyIfLast, boolean isUnstableShownOnlyIfLast, boolean isOnlyShowLastStatus, boolean isShowColorblindUnderlineHint, AbstractStatusesColumn.TimeAgoType timeAgoType, int hideDays) -
getLastFailedBuild
public static BuildInfo getLastFailedBuild(Job<?, ?> job, Locale locale, boolean onlyIfLastCompleted, boolean isShowColorblindUnderlineHint, boolean isFirst, AbstractStatusesColumn.TimeAgoType timeAgoType) - Parameters:
onlyIfLastCompleted
- When the statuses aren't sorted, we only show the last failed when it is also the latest completed build.
-
getLastStableBuild
public static BuildInfo getLastStableBuild(Job<?, ?> job, Locale locale, boolean isShowColorblindUnderlineHint, boolean isFirst, AbstractStatusesColumn.TimeAgoType timeAgoType) -
getLastUnstableBuild
public static BuildInfo getLastUnstableBuild(Job<?, ?> job, Locale locale, boolean isUnstableShownOnlyIfLast, boolean isShowColorblindUnderlineHint, boolean isFirst, AbstractStatusesColumn.TimeAgoType timeAgoType) -
getTimeAgoString
protected static String getTimeAgoString(Locale locale, long timestamp, boolean isMultiple, AbstractStatusesColumn.TimeAgoType timeAgoType) -
getBuildTimeString
-
getBuildTimeString
-
formatDate
I want to use 4-digit years (for clarity), and that doesn't work out of the box... -
formatDateTime
-
formatTime
-
getShortTimestamp
Avoids having "2 days 3 hours" and instead does "2.1 days".Additional strategy details:
- < 1 sec = 0 sec
- < 10 of anything = x.y of that (scale 1)
- >= 10 of anything = x (scale 0)
-
getRoundedNumber
protected static float getRoundedNumber(float number) -
getAbortedMessage
-
getFailedMessage
-
getUnstableMessage
-
getBuildDescriptionToolTip
-
getStableMessage
-
getColumnSortData
-
getHideDays
public int getHideDays() -
isBuildsEmpty
-
getBuilds
-
isFailedShownOnlyIfLast
protected abstract boolean isFailedShownOnlyIfLast() -
isUnstableShownOnlyIfLast
protected abstract boolean isUnstableShownOnlyIfLast() -
isOnlyShowLastStatus
public boolean isOnlyShowLastStatus() -
getToolTip
-
getTimeAgoTypeString
-