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 Summary
Modifier and TypeMethodDescriptionWho aborted the run, or null.Core's status symbol (symbol-status-red), or null for a result that is not a build result.Root-relative job URL for a viewer with Item/Read, else null (plain text).The result's readable label (Failed), or the recorded text of an unknown result; may be empty.#n, or the recorded run id when it holds no number.Root-relative run URL for a viewer with Item/Read on a run that still exists, else null (plain text).static RunCellThe cell of a run, for the user the calling thread runs as (never underACL.SYSTEM2).
-
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 underACL.SYSTEM2).- Parameters:
jobFullName- the job's full name as recordednumber- the build number, or 0 or less when onlyrunIdis knownrunId- the recordedjobFullName#number, read whennumberis not givenresult- the recorded result name, possibly not a build resultabortedBy- who aborted the run, or null
-
getJobFullName
-
getRunText
#n, or the recorded run id when it holds no number. -
getResultLabel
The result's readable label (Failed), or the recorded text of an unknown result; may be empty. -
getIconSrc
Core's status symbol (symbol-status-red), or null for a result that is not a build result. -
getJobUrl
Root-relative job URL for a viewer with Item/Read, else null (plain text). -
getRunUrl
Root-relative run URL for a viewer with Item/Read on a run that still exists, else null (plain text). -
getAbortedBy
Who aborted the run, or null.
-