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 fakeRunused to render last build information via Stapler and Jelly
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPseudoRun.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.RunUrldecompose(org.kohsuke.stapler.StaplerRequest req)org.kohsuke.stapler.HttpResponsedoConsole(org.kohsuke.stapler.StaplerRequest request)org.kohsuke.stapler.HttpResponsedoConsoleText(org.kohsuke.stapler.StaplerRequest request)org.kohsuke.stapler.HttpResponsedoIndex(org.kohsuke.stapler.StaplerRequest request)StringgetDisplayName()StringgetDurationString()FilegetLogFile()ResultgetResult()StringgetSearchUrl()ObjectgetStaplerFallback()CalendargetTimestamp()StringgetTimestampString()Gets the string that says how long since this build has started.StringgetTimestampString2()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:
getDisplayNamein 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:
getSearchUrlin interfaceSearchItem
-
getLogFile
@NonNull public File getLogFile()
-
getStaplerFallback
public Object getStaplerFallback()
- Specified by:
getStaplerFallbackin 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)
-
-