Class InteractiveViewJobAction
java.lang.Object
io.jenkins.plugins.interactiveinput.ui.InteractiveViewJobAction
- All Implemented Interfaces:
Action,ModelObject,Badgeable
Per-job "Interactive View" surface. Attached to every
Job by InteractiveViewJobAction.Factory when the
per-project surfaces are enabled; the sidebar link shows whenever the job has any review the viewer
can read (so decided reviews — and their comment history — stay reachable after the build completes),
while the live count badge still reflects only open notifications the viewer should act on. Its
index.jelly lists the job's reviews across builds, each linking to that build's review editor.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAttachesInteractiveViewJobActionto every job when per-project surfaces are enabled. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Action
getDescription, getEvent, getGroup, getSemantic, isVisibleInContextMenu
-
Field Details
-
URL_NAME
Stable URL segment under the job (e.g./job/foo/interactive-view/).- See Also:
-
-
Constructor Details
-
InteractiveViewJobAction
-
-
Method Details
-
getJob
-
getObject
- Returns:
- the owning job. Required by core's
l:job-subpage(it.object).
-
getJobFullName
-
getReviews
- Returns:
- every review for this job the current viewer may read (any status), newest builds first.
-
getReviewGroups
- Returns:
- this job's readable reviews grouped by report name (a stable, newest-first ordering),
so the page can render a section per report/folder across builds. A
LinkedHashMappreserves the newest-first insertion order for both the group headings and their rows.
-
getPendingCount
public int getPendingCount()- Returns:
- the open, notify-enabled reviews this job should surface to the current viewer as a live
count badge, honouring the user-scope switch (0 on any store error). Note this is the
notification count, not the sidebar-link visibility gate — see
isHasAnyReviews().
-
isHasAnyReviews
public boolean isHasAnyReviews()- Returns:
trueif the job has any review the current viewer may read (any status). Gates the sidebar link so completed/decided reviews (and their comment history) stay reachable after the build finishes, mirroring the per-build audit link's "stays visible" behaviour.
-
isBuildDeleted
- Returns:
trueif the review's owning build has been deleted. The per-job page keeps listing such reviews (their comment/decision history is durable) but marks them "build deleted" and drops the link to the — now absent — per-build review editor. Called per row fromindex.jelly. The flag is set byBuildLifecycleCleanupon deletion (and by its startup reconcile for builds deleted earlier), so no live build lookup is needed here.
-
getPollingIntervalSeconds
public int getPollingIntervalSeconds() -
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject- Returns:
- the stable sidebar / overflow label. The pending count is
getBadge(), not a(N)suffix, so the classic sidepanel does not flicker fromInteractive View (N)to a pill.
-
getBadge
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-