Class RunExt

java.lang.Object
com.cloudbees.workflow.rest.external.RunExt
Direct Known Subclasses:
RunExt.ChildHidingWrapper

public class RunExt extends Object
External API response object for pipeline run
Author:
tom.fennelly@gmail.com
  • Constructor Details

    • RunExt

      public RunExt()
  • Method Details

    • get_links

      public RunExt.RunLinks get_links()
    • set_links

      public void set_links(RunExt.RunLinks _links)
    • getId

      public String getId()
    • setId

      public void setId(String id)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getStatus

      public StatusExt getStatus()
    • setStatus

      public void setStatus(StatusExt status)
    • getStartTimeMillis

      public long getStartTimeMillis()
    • setStartTimeMillis

      public void setStartTimeMillis(long startTimeMillis)
    • getEndTimeMillis

      public long getEndTimeMillis()
    • setEndTimeMillis

      public void setEndTimeMillis(long endTimeMillis)
    • getDurationMillis

      public long getDurationMillis()
    • setDurationMillis

      public void setDurationMillis(long durationMillis)
    • getQueueDurationMillis

      public long getQueueDurationMillis()
    • setQueueDurationMillis

      public void setQueueDurationMillis(long queueDurationMillis)
    • getPauseDurationMillis

      public long getPauseDurationMillis()
    • setPauseDurationMillis

      public void setPauseDurationMillis(long pauseDurationMillis)
    • getStages

      public List<StageNodeExt> getStages()
    • setStages

      public void setStages(List<StageNodeExt> stages)
    • computeTimings

      @Deprecated public static RunExt computeTimings(RunExt runExt)
      Deprecated.
      Computes timings after the stages have been set up That means timing of the stage has been computed, and the stages are sorted Deprecated but retained for external APIs consuming it, use createNew(WorkflowRun) instead
    • createMinimal

      public static RunExt createMinimal(org.jenkinsci.plugins.workflow.job.WorkflowRun run)
      Get basics set up: everything but status/timing/node walking for a run, no cache use
    • createWrapper

      public RunExt createWrapper()
      Creates a wrapper of this that hides the full stage nodes Use case: returning a minimal view of the run, while using a cached, fully-realized version
    • create

      public static RunExt create(org.jenkinsci.plugins.workflow.job.WorkflowRun run)
    • createNew

      public static RunExt createNew(org.jenkinsci.plugins.workflow.job.WorkflowRun run)
    • isPendingInput

      public static boolean isPendingInput(org.jenkinsci.plugins.workflow.job.WorkflowRun run)