Class InteractiveInputRunTab
java.lang.Object
jenkins.model.Tab
io.jenkins.plugins.interactiveinput.ui.InteractiveInputRunTab
- All Implemented Interfaces:
Action,ModelObject,Badgeable
Native "Interactive Input" attention card for the experimental run overview — the experimental-layout
counterpart of
InteractiveInputRunAction's summary.jelly (B5 attention row), which is
suppressed when the new build page is on. Rendered by core's jenkins/run/OverviewTab/index.jelly
via Run#getRunTabs() + widget.jelly, so the "input needed" prompt is a first-class
<l:card> instead of a row inside core's "Legacy" card.
getIconFileName() returns a non-null icon (making the tab/card visible) only when the
viewer has the experimental build page enabled AND this build is currently waiting for the viewer's
input. So it appears only when relevant, never in the classic layout, and matches the per-viewer
scoping of the classic row. Live reveal/hide is handled by the global bell + auto-open dialog; this
server-rendered card is the in-page attention surface.
The tab's getUrlName() matches InteractiveInputRunAction so the experimental
tab bar stays on the same URL as the sidepanel action. This tab is widget-only: the action's
index.jelly (l:run-subpage) serves the page. getBadge() supplies the
pending count on the tab bar.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAttaches the tab to builds of jobs that opted into the run-page attention indicator (same gate as the classic row). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSame URL segment asInteractiveInputRunActionso the tab bar stays on the action page. -
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
Same URL segment asInteractiveInputRunActionso the tab bar stays on the action page.- See Also:
-
-
Constructor Details
-
InteractiveInputRunTab
-
-
Method Details
-
getRun
-
getJobFullName
-
getBuildNumber
public int getBuildNumber() -
getIconClassName
- Returns:
- the theme-aware notification symbol configured in Appearance.
-
isWaiting
public boolean isWaiting()- Returns:
truewhile this build has a WAITING question the current viewer should answer.
-
getPendingCount
public int getPendingCount()- Returns:
- WAITING questions on this build the current viewer should act on (0 on any store error).
-
getPollingIntervalSeconds
public int getPollingIntervalSeconds() -
isRichModalEnabled
public boolean isRichModalEnabled() -
getIconFileName
-
getDisplayName
-
getUrlName
-
getBadge
- Returns:
- a numeric DANGER badge while this build is waiting for the current viewer;
nullat zero. Core shows this on the experimental tab bar.
-