Class DownstreamBuildAction.DownstreamBuild

java.lang.Object
org.jenkinsci.plugins.workflow.support.steps.build.DownstreamBuildAction.DownstreamBuild
Enclosing class:
DownstreamBuildAction

public static final class DownstreamBuildAction.DownstreamBuild extends Object
  • Method Details

    • getFlowNodeId

      @NonNull public String getFlowNodeId()
    • getJobFullName

      @NonNull public String getJobFullName()
    • getBuildNumber

      @CheckForNull public Integer getBuildNumber()
      Get the build number of the downstream build, or null if the downstream build has not yet started or the queue item was cancelled.
    • getBuild

      @CheckForNull public Run<?,?> getBuild() throws org.springframework.security.access.AccessDeniedException
      Load the downstream build, if it has started and still exists.

      Loading builds indiscriminately will affect controller performance, so use this carefully. If you only need to know whether the build started at one point, use getBuildNumber().

      Throws:
      org.springframework.security.access.AccessDeniedException - as per ItemGroup.getItem(java.lang.String)