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
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface ModelObject
    • 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 interface SearchItem
    • getLogFile

      @NonNull public File getLogFile()
    • getStaplerFallback

      public Object getStaplerFallback()
      Specified by:
      getStaplerFallback in interface org.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)