Class PseudoRun<I extends TopLevelItem>
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.Actionable
-
- com.cloudbees.hudson.plugins.folder.computed.PseudoRun<I>
-
- All Implemented Interfaces:
ModelObject
,SearchableModelObject
,SearchItem
,ModelObjectWithContextMenu
,org.kohsuke.stapler.StaplerFallback
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class PseudoRun<I extends TopLevelItem> extends Actionable implements org.kohsuke.stapler.StaplerFallback
A fakeRun
used to render last build information via Stapler and Jelly
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PseudoRun.RunUrl
-
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem, ModelObjectWithContextMenu.MenuItemType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PseudoRun.RunUrl
decompose(org.kohsuke.stapler.StaplerRequest req)
org.kohsuke.stapler.HttpResponse
doConsole(org.kohsuke.stapler.StaplerRequest request)
org.kohsuke.stapler.HttpResponse
doConsoleText(org.kohsuke.stapler.StaplerRequest request)
org.kohsuke.stapler.HttpResponse
doIndex(org.kohsuke.stapler.StaplerRequest request)
String
getDisplayName()
String
getDurationString()
File
getLogFile()
Result
getResult()
String
getSearchUrl()
Object
getStaplerFallback()
Calendar
getTimestamp()
String
getTimestampString()
Gets the string that says how long since this build has started.String
getTimestampString2()
Returns the timestamp formatted in xs:dateTime.-
Methods inherited from class hudson.model.Actionable
addAction, addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, removeAction, removeActions, replaceAction, replaceActions
-
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
-
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceModelObject
-
decompose
public PseudoRun.RunUrl decompose(org.kohsuke.stapler.StaplerRequest req)
-
getTimestampString
@NonNull public String getTimestampString()
Gets the string that says how long since this build has started.- Returns:
- string like "3 minutes" "1 day" etc.
-
getTimestampString2
@NonNull public String getTimestampString2()
Returns the timestamp formatted in xs:dateTime.- Returns:
- the timestamp formatted in xs:dateTime.
-
getResult
@CheckForNull public Result getResult()
-
getTimestamp
@NonNull public Calendar getTimestamp()
-
getDurationString
@NonNull public String getDurationString()
-
getSearchUrl
public String getSearchUrl()
- Specified by:
getSearchUrl
in interfaceSearchItem
-
getLogFile
@NonNull public File getLogFile()
-
getStaplerFallback
public Object getStaplerFallback()
- Specified by:
getStaplerFallback
in interfaceorg.kohsuke.stapler.StaplerFallback
-
doIndex
public org.kohsuke.stapler.HttpResponse doIndex(org.kohsuke.stapler.StaplerRequest request)
-
doConsole
public org.kohsuke.stapler.HttpResponse doConsole(org.kohsuke.stapler.StaplerRequest request)
-
doConsoleText
public org.kohsuke.stapler.HttpResponse doConsoleText(org.kohsuke.stapler.StaplerRequest request)
-
-