Class RunCell

java.lang.Object
io.jenkins.plugins.batchcontrol.ui.RunCell

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public final class RunCell extends Object
#6, #18.1 (Wave D, D3): the Run cell of the run tables (the Run Dashboard, History > Runs) and of the incident tables (the Incidents list, History > Incidents), rendered by tags/runCell.jelly: core's status icon of the result, the job, the #n run and the result's readable label as visible plain text (StatusLabels.ofResult(java.lang.String), the same words as the Result filter; owner decision 2026-10-15). The result is never a badge. A result that is not a build result (a record written by something else) has no icon and is shown as it is.

Links follow the one run-link rule (D-44): the job and the run link only for a viewer holding Item/Read on the job, each to its own URL (AbstractItem.getUrl(), Visibility.runUrl(java.lang.String, int), so a matrix configuration links where it lives, #42). A run deleted since it was recorded is plain text while its job still links. Every value is text for the view, which escapes it.

  • Method Details

    • of

      public static RunCell of(@CheckForNull String jobFullName, int number, @CheckForNull String runId, @CheckForNull String result, @CheckForNull String abortedBy)
      The cell of a run, for the user the calling thread runs as (never under ACL.SYSTEM2).
      Parameters:
      jobFullName - the job's full name as recorded
      number - the build number, or 0 or less when only runId is known
      runId - the recorded jobFullName#number, read when number is not given
      result - the recorded result name, possibly not a build result
      abortedBy - who aborted the run, or null
    • getJobFullName

      public String getJobFullName()
    • getRunText

      public String getRunText()
      #n, or the recorded run id when it holds no number.
    • getResultLabel

      public String getResultLabel()
      The result's readable label (Failed), or the recorded text of an unknown result; may be empty.
    • getIconSrc

      @CheckForNull public String getIconSrc()
      Core's status symbol (symbol-status-red), or null for a result that is not a build result.
    • getJobUrl

      @CheckForNull public String getJobUrl()
      Root-relative job URL for a viewer with Item/Read, else null (plain text).
    • getRunUrl

      @CheckForNull public String getRunUrl()
      Root-relative run URL for a viewer with Item/Read on a run that still exists, else null (plain text).
    • getAbortedBy

      @CheckForNull public String getAbortedBy()
      Who aborted the run, or null.