Class PipelineRunImpl

java.lang.Object
io.jenkins.blueocean.rest.model.Resource
io.jenkins.blueocean.rest.model.BlueRun
io.jenkins.blueocean.service.embedded.rest.AbstractRunImpl<org.jenkinsci.plugins.workflow.job.WorkflowRun>
io.jenkins.blueocean.rest.impl.pipeline.PipelineRunImpl
All Implemented Interfaces:
io.jenkins.blueocean.rest.model.BlueItemRun, io.jenkins.blueocean.rest.Reachable

public class PipelineRunImpl extends io.jenkins.blueocean.service.embedded.rest.AbstractRunImpl<org.jenkinsci.plugins.workflow.job.WorkflowRun>
Pipeline Run
Author:
Vivek Pandey
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class io.jenkins.blueocean.service.embedded.rest.AbstractRunImpl

    io.jenkins.blueocean.service.embedded.rest.AbstractRunImpl.BlueCauseImpl

    Nested classes/interfaces inherited from class io.jenkins.blueocean.rest.model.BlueRun

    io.jenkins.blueocean.rest.model.BlueRun.BlueCause, io.jenkins.blueocean.rest.model.BlueRun.BlueRunResult, io.jenkins.blueocean.rest.model.BlueRun.BlueRunState
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Comparator<io.jenkins.blueocean.rest.model.BlueRun>
     

    Fields inherited from class io.jenkins.blueocean.service.embedded.rest.AbstractRunImpl

    BLUEOCEAN_FEATURE_RUN_DESCRIPTION_ENABLED, DATE_FORMAT, organization, parent, run

    Fields inherited from class io.jenkins.blueocean.rest.model.BlueRun

    ACTIONS, CAUSE_OF_BLOCKAGE, CAUSES, DATE_FORMAT_STRING, DEFAULT_BLOCKING_STOP_TIMEOUT_IN_SECS, DESCRIPTION, DURATION_IN_MILLIS, END_TIME, ENQUEUE_TIME, ESTIMATED_DURATION_IN_MILLIS, ID, NAME, ORGANIZATION, PIPELINE, REPLAYABLE, RESULT, RUN_SUMMARY, START_TIME, STATE, TYPE
  • Constructor Summary

    Constructors
    Constructor
    Description
    PipelineRunImpl(org.jenkinsci.plugins.workflow.job.WorkflowRun run, io.jenkins.blueocean.rest.Reachable parent, io.jenkins.blueocean.rest.model.BlueOrganization organization)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
     
    io.jenkins.blueocean.rest.model.BluePipelineNodeContainer
     
     
    io.jenkins.blueocean.rest.model.BlueRun.BlueRunState
     
    io.jenkins.blueocean.rest.model.BluePipelineStepContainer
     
    boolean
     
    io.jenkins.blueocean.rest.model.BlueRun
     
    io.jenkins.blueocean.rest.model.BlueRun
    stop(Boolean blocking, Integer timeOutInSecs)
     

    Methods inherited from class io.jenkins.blueocean.service.embedded.rest.AbstractRunImpl

    getActions, getArtifacts, getArtifactsZipFile, getBlueTestSummary, getCauses, getChangeSet, getDescription, getDurationInMillis, getDynamic, getEndTime, getEndTimeString, getEnQueueTime, getEnQueueTimeString, getEstimatedDurtionInMillis, getId, getLink, getLinks, getLog, getName, getOrganization, getPipeline, getResult, getRunSummary, getStartTime, getStartTimeString, getTests, getTestSummary, getType, stop

    Methods inherited from class io.jenkins.blueocean.rest.model.Resource

    getState

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LATEST_RUN_START_TIME_COMPARATOR

      public static final Comparator<io.jenkins.blueocean.rest.model.BlueRun> LATEST_RUN_START_TIME_COMPARATOR
  • Constructor Details

    • PipelineRunImpl

      public PipelineRunImpl(org.jenkinsci.plugins.workflow.job.WorkflowRun run, io.jenkins.blueocean.rest.Reachable parent, io.jenkins.blueocean.rest.model.BlueOrganization organization)
  • Method Details

    • getBranch

      @Exported(name="branch", inline=true) public BranchImpl.Branch getBranch()
    • getPullRequest

      @Exported(name="pullRequest", inline=true) public BranchImpl.PullRequest getPullRequest()
    • getStateObj

      public io.jenkins.blueocean.rest.model.BlueRun.BlueRunState getStateObj()
      Specified by:
      getStateObj in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Overrides:
      getStateObj in class io.jenkins.blueocean.service.embedded.rest.AbstractRunImpl<org.jenkinsci.plugins.workflow.job.WorkflowRun>
    • replay

      public io.jenkins.blueocean.rest.model.BlueRun replay()
      Overrides:
      replay in class io.jenkins.blueocean.service.embedded.rest.AbstractRunImpl<org.jenkinsci.plugins.workflow.job.WorkflowRun>
    • isReplayable

      public boolean isReplayable()
      Specified by:
      isReplayable in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Overrides:
      isReplayable in class io.jenkins.blueocean.service.embedded.rest.AbstractRunImpl<org.jenkinsci.plugins.workflow.job.WorkflowRun>
    • getNodes

      @Navigable public io.jenkins.blueocean.rest.model.BluePipelineNodeContainer getNodes()
      Overrides:
      getNodes in class io.jenkins.blueocean.service.embedded.rest.AbstractRunImpl<org.jenkinsci.plugins.workflow.job.WorkflowRun>
    • getSteps

      @Navigable public io.jenkins.blueocean.rest.model.BluePipelineStepContainer getSteps()
      Overrides:
      getSteps in class io.jenkins.blueocean.service.embedded.rest.AbstractRunImpl<org.jenkinsci.plugins.workflow.job.WorkflowRun>
    • stop

      public io.jenkins.blueocean.rest.model.BlueRun stop(@QueryParameter("blocking") Boolean blocking, @QueryParameter("timeOutInSecs") Integer timeOutInSecs)
      Overrides:
      stop in class io.jenkins.blueocean.service.embedded.rest.AbstractRunImpl<org.jenkinsci.plugins.workflow.job.WorkflowRun>
    • getCommitId

      @Exported(name="commitId") public String getCommitId()
    • getCommitUrl

      @Exported(name="commitUrl") public String getCommitUrl()
    • getCauseOfBlockage

      public String getCauseOfBlockage()
      Specified by:
      getCauseOfBlockage in interface io.jenkins.blueocean.rest.model.BlueItemRun
      Overrides:
      getCauseOfBlockage in class io.jenkins.blueocean.service.embedded.rest.AbstractRunImpl<org.jenkinsci.plugins.workflow.job.WorkflowRun>