Class InteractiveInputRunAction
java.lang.Object
io.jenkins.plugins.interactiveinput.ui.InteractiveInputRunAction
- All Implemented Interfaces:
Action,BuildBadgeAction,ModelObject,Badgeable
Per-build notification + audit surface (§per-project surfaces). Attached to a
Run by
InteractiveInputRunAction.Factory only when that build has interactive-input questions recorded in the store.
As a BuildBadgeAction its badge.jelly renders an "awaiting input" marker in the
build-history list while the build is waiting (core's Run#getBadgeActions() includes
transient actions — verified against Actionable#getActions(Class)). Its index.jelly
is the per-build audit view (reached from the build's left-sidebar link and from the anchored
console link), showing what was asked and what was chosen.
Audit data is read live from the QuestionStore; the durable record is the build console
line written by the step. After retention compaction the store no longer holds settled questions,
so the audit page shows an empty state and defers to the console line (documented trade-off).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAttachesInteractiveInputRunActionto builds that have interactive-input questions. -
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 run (e.g./job/foo/3/interactive-input/).- See Also:
-
-
Constructor Details
-
InteractiveInputRunAction
-
-
Method Details
-
getIconClassName
- Returns:
- the theme-aware symbol class for the configured notification icon.
-
getRun
-
getObject
- Returns:
- the owning run. Required by core's
l:run-subpage(it.object).
-
getJobFullName
-
getBuildNumber
public int getBuildNumber() -
isWaiting
public boolean isWaiting()- Returns:
truewhile this build has a WAITING question the current viewer should be notified of (drives the history badge, honouring the user-scope and lock switches).
-
getPendingCount
public int getPendingCount()- Returns:
- WAITING questions on this build the current viewer should act on (0 on any store error),
honouring the user-scope switch. Surfaces as
getBadge()on the classic sidebar and experimental tab bar.
-
getPollingIntervalSeconds
public int getPollingIntervalSeconds() -
isRichModalEnabled
public boolean isRichModalEnabled() -
isRunAlertEnabled
public boolean isRunAlertEnabled()- Returns:
- whether this build's job opted in to the run-page attention indicator (B5) via the per-pipeline "alert user on run page" property in Configure. Gates the summary row only; the auto-open dialog is independent of this and governed by the System setting.
-
isClassicSummaryVisible
public boolean isClassicSummaryVisible()- Returns:
- whether the classic
summary.jellyattention row should render. Suppressed under the experimental build page, where the prompt is shown natively byInteractiveInputRunTab(avoiding a duplicate inside core's "Legacy" card).
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getBadge
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-