Class InteractiveInputRunTab

java.lang.Object
jenkins.model.Tab
io.jenkins.plugins.interactiveinput.ui.InteractiveInputRunTab
All Implemented Interfaces:
Action, ModelObject, Badgeable

public class InteractiveInputRunTab extends Tab
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.

  • Field Details

  • Constructor Details

    • InteractiveInputRunTab

      public InteractiveInputRunTab(@NonNull Run<?,?> run)
  • Method Details

    • getRun

      @NonNull public Run<?,?> getRun()
    • getJobFullName

      @NonNull public String getJobFullName()
    • getBuildNumber

      public int getBuildNumber()
    • getIconClassName

      @NonNull public String getIconClassName()
      Returns:
      the theme-aware notification symbol configured in Appearance.
    • isWaiting

      public boolean isWaiting()
      Returns:
      true while 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

      @CheckForNull public String getIconFileName()
    • getDisplayName

      @NonNull public String getDisplayName()
    • getUrlName

      @NonNull public String getUrlName()
    • getBadge

      @CheckForNull public Badge getBadge()
      Returns:
      a numeric DANGER badge while this build is waiting for the current viewer; null at zero. Core shows this on the experimental tab bar.