Class AbstractRunImpl<T extends Run>

java.lang.Object
io.jenkins.blueocean.rest.model.Resource
io.jenkins.blueocean.rest.model.BlueRun
io.jenkins.blueocean.service.embedded.rest.AbstractRunImpl<T>
All Implemented Interfaces:
io.jenkins.blueocean.rest.model.BlueItemRun, io.jenkins.blueocean.rest.Reachable
Direct Known Subclasses:
AbstractBlueRunSummary, DefaultRunImpl, FreeStyleRunImpl

public abstract class AbstractRunImpl<T extends Run> extends io.jenkins.blueocean.rest.model.BlueRun
Basic BlueRun implementation.
Author:
Vivek Pandey
  • Field Details

    • BLUEOCEAN_FEATURE_RUN_DESCRIPTION_ENABLED

      public static final String BLUEOCEAN_FEATURE_RUN_DESCRIPTION_ENABLED
      See Also:
    • DATE_FORMAT

      public static final DateTimeFormatter DATE_FORMAT
    • run

      protected final T extends Run run
    • organization

      protected final io.jenkins.blueocean.rest.model.BlueOrganization organization
    • parent

      protected final io.jenkins.blueocean.rest.Reachable parent
  • Constructor Details

    • AbstractRunImpl

      public AbstractRunImpl(T run, io.jenkins.blueocean.rest.Reachable parent, io.jenkins.blueocean.rest.model.BlueOrganization organization)
  • Method Details

    • getChangeSet

      @Exported(inline=true) public io.jenkins.blueocean.rest.model.Container<io.jenkins.blueocean.rest.model.BlueChangeSetEntry> getChangeSet()
      Specified by:
      getChangeSet in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Specified by:
      getChangeSet in class io.jenkins.blueocean.rest.model.BlueRun
    • getOrganization

      public String getOrganization()
      Specified by:
      getOrganization in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Specified by:
      getOrganization in class io.jenkins.blueocean.rest.model.BlueRun
    • getId

      public String getId()
      Specified by:
      getId in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Specified by:
      getId in class io.jenkins.blueocean.rest.model.BlueRun
    • getPipeline

      public String getPipeline()
      Specified by:
      getPipeline in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Specified by:
      getPipeline in class io.jenkins.blueocean.rest.model.BlueRun
    • getName

      public String getName()
      Specified by:
      getName in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Specified by:
      getName in class io.jenkins.blueocean.rest.model.BlueRun
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Specified by:
      getDescription in class io.jenkins.blueocean.rest.model.BlueRun
    • getStartTime

      public Date getStartTime()
      Specified by:
      getStartTime in class io.jenkins.blueocean.rest.model.BlueRun
    • getEnQueueTime

      public Date getEnQueueTime()
      Specified by:
      getEnQueueTime in class io.jenkins.blueocean.rest.model.BlueRun
    • getEnQueueTimeString

      public String getEnQueueTimeString()
      Specified by:
      getEnQueueTimeString in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Specified by:
      getEnQueueTimeString in class io.jenkins.blueocean.rest.model.BlueRun
    • getStartTimeString

      public String getStartTimeString()
      Specified by:
      getStartTimeString in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Specified by:
      getStartTimeString in class io.jenkins.blueocean.rest.model.BlueRun
    • getEndTimeString

      public String getEndTimeString()
      Specified by:
      getEndTimeString in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Specified by:
      getEndTimeString in class io.jenkins.blueocean.rest.model.BlueRun
    • getStateObj

      public io.jenkins.blueocean.rest.model.BlueRun.BlueRunState getStateObj()
      Specified by:
      getStateObj in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Specified by:
      getStateObj in class io.jenkins.blueocean.rest.model.BlueRun
    • getResult

      public io.jenkins.blueocean.rest.model.BlueRun.BlueRunResult getResult()
      Specified by:
      getResult in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Specified by:
      getResult in class io.jenkins.blueocean.rest.model.BlueRun
    • getEndTime

      public Date getEndTime()
      Specified by:
      getEndTime in class io.jenkins.blueocean.rest.model.BlueRun
    • getDurationInMillis

      public Long getDurationInMillis()
      Specified by:
      getDurationInMillis in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Specified by:
      getDurationInMillis in class io.jenkins.blueocean.rest.model.BlueRun
    • getEstimatedDurtionInMillis

      public Long getEstimatedDurtionInMillis()
      Specified by:
      getEstimatedDurtionInMillis in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Specified by:
      getEstimatedDurtionInMillis in class io.jenkins.blueocean.rest.model.BlueRun
    • getRunSummary

      public String getRunSummary()
      Specified by:
      getRunSummary in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Specified by:
      getRunSummary in class io.jenkins.blueocean.rest.model.BlueRun
    • getType

      public String getType()
      Specified by:
      getType in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Specified by:
      getType in class io.jenkins.blueocean.rest.model.BlueRun
    • getLog

      public Object getLog()
      Specified by:
      getLog in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Specified by:
      getLog in class io.jenkins.blueocean.rest.model.BlueRun
    • replay

      public io.jenkins.blueocean.rest.model.BlueRun replay()
      Specified by:
      replay in class io.jenkins.blueocean.rest.model.BlueRun
    • getCauses

      public Collection<io.jenkins.blueocean.rest.model.BlueRun.BlueCause> getCauses()
      Specified by:
      getCauses in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Specified by:
      getCauses in class io.jenkins.blueocean.rest.model.BlueRun
    • getCauseOfBlockage

      public String getCauseOfBlockage()
      Specified by:
      getCauseOfBlockage in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Specified by:
      getCauseOfBlockage in class io.jenkins.blueocean.rest.model.BlueRun
    • isReplayable

      public boolean isReplayable()
      Specified by:
      isReplayable in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Specified by:
      isReplayable in class io.jenkins.blueocean.rest.model.BlueRun
    • getArtifacts

      public io.jenkins.blueocean.rest.model.BlueArtifactContainer getArtifacts()
      Specified by:
      getArtifacts in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Specified by:
      getArtifacts in class io.jenkins.blueocean.rest.model.BlueRun
    • getNodes

      public io.jenkins.blueocean.rest.model.BluePipelineNodeContainer getNodes()
      Specified by:
      getNodes in class io.jenkins.blueocean.rest.model.BlueRun
    • getSteps

      public io.jenkins.blueocean.rest.model.BluePipelineStepContainer getSteps()
      Specified by:
      getSteps in class io.jenkins.blueocean.rest.model.BlueRun
    • getTests

      public io.jenkins.blueocean.rest.model.BlueTestResultContainer getTests()
      Specified by:
      getTests in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Specified by:
      getTests in class io.jenkins.blueocean.rest.model.BlueRun
    • getTestSummary

      public io.jenkins.blueocean.rest.model.BlueTestSummary getTestSummary()
      Specified by:
      getTestSummary in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Specified by:
      getTestSummary in class io.jenkins.blueocean.rest.model.BlueRun
    • getBlueTestSummary

      public io.jenkins.blueocean.rest.model.BlueTestSummary getBlueTestSummary()
      Specified by:
      getBlueTestSummary in class io.jenkins.blueocean.rest.model.BlueRun
    • getActions

      public Collection<io.jenkins.blueocean.rest.model.BlueActionProxy> getActions()
      Specified by:
      getActions in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Specified by:
      getActions in class io.jenkins.blueocean.rest.model.BlueRun
    • stop

      public io.jenkins.blueocean.rest.model.BlueRun stop(@QueryParameter("blocking") Boolean blocking, @QueryParameter("timeOutInSecs") Integer timeOutInSecs)
      Specified by:
      stop in class io.jenkins.blueocean.rest.model.BlueRun
    • getArtifactsZipFile

      public String getArtifactsZipFile()
      Specified by:
      getArtifactsZipFile in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Specified by:
      getArtifactsZipFile in class io.jenkins.blueocean.rest.model.BlueRun
    • stop

      protected io.jenkins.blueocean.rest.model.BlueRun stop(Boolean blocking, Integer timeOutInSecs, StoppableRun stoppableRun)
    • getDynamic

      public Object getDynamic(String token)
      Handles HTTP path handled by actions or other extensions
      Parameters:
      token - path token that an action or extension can handle
      Returns:
      action or extension that handles this path.
    • getLink

      public io.jenkins.blueocean.rest.hal.Link getLink()
    • getLinks

      public io.jenkins.blueocean.rest.hal.Links getLinks()
      Overrides:
      getLinks in class io.jenkins.blueocean.rest.model.Resource