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 fake
Run
used to render last build information via Stapler and Jelly-
Nested Class Summary
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem, ModelObjectWithContextMenu.MenuItemType
-
Method Summary
Modifier and TypeMethodDescriptiondecompose
(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) Gets the string that says how long since this build has started.Returns the timestamp formatted in xs:dateTime.Methods inherited from class hudson.model.Actionable
addAction, addOrReplaceAction, doContextMenu, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, getDynamic, removeAction, removeActions, replaceAction, replaceActions
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendError
-
Method Details
-
getDisplayName
- Specified by:
getDisplayName
in interfaceModelObject
-
decompose
-
getTimestampString
Gets the string that says how long since this build has started.- Returns:
- string like "3 minutes" "1 day" etc.
-
getTimestampString2
Returns the timestamp formatted in xs:dateTime.- Returns:
- the timestamp formatted in xs:dateTime.
-
getResult
-
getTimestamp
-
getDurationString
-
getSearchUrl
- Specified by:
getSearchUrl
in interfaceSearchItem
-
getLogFile
-
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)
-