Class RequestRunUiDecorator
- All Implemented Interfaces:
ExtensionPoint
Both message keys are handled because Freestyle uses
AbstractProject.BUILD_NOW_TEXT while Pipeline (and other ParameterizedJobs)
uses ParameterizedJobMixIn.BUILD_NOW_TEXT (POC-RESULTS assumption D). Core's
BUILD_WITH_PARAMETERS_TEXT needs no separate handling: when no provider answers it,
core falls back to BUILD_NOW_TEXT, which is this one.
U-02. This label used to be "Request Run" — the same words
JobRequestAction puts on the sidebar — so a controlled job showed two identical
entries going to different places, and the core one is the wrong one: its href is
/job/<name>/build?delay=0sec, so following it reaches the queue without an approved
marker and is refused (e2e-01 UX-1 recorded it as a dead end that looks like the right
button). Core's entry cannot be hidden or re-pointed from a plugin — its href and its
it.buildable/Item/Build rendering condition are core's — so the two are told
apart by their labels instead: exactly one sidebar entry now reads
"Request Run" and it is the one that opens the request form, while this one
says what it is and that it needs approval first.
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.util.AlternativeUiTextProvider
AlternativeUiTextProvider.Message<T>Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe replacement for core's "Build Now" caption.static final StringThe sidebar label of the plugin's own request form, used byJobRequestAction.getDisplayName(). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> StringgetText(AlternativeUiTextProvider.Message<T> text, T context) Methods inherited from class hudson.util.AlternativeUiTextProvider
all, get, get
-
Field Details
-
REQUEST_RUN_LABEL
The sidebar label of the plugin's own request form, used byJobRequestAction.getDisplayName(). Kept here so that the two sidebar entries of a controlled job are named in one place and cannot drift back into being identical.- See Also:
-
BLOCKED_BUILD_LABEL
The replacement for core's "Build Now" caption. It deliberately does not contain the words "Build Now" (SPEC item 6) and is not a synonym of "Request Run".- See Also:
-
-
Constructor Details
-
RequestRunUiDecorator
public RequestRunUiDecorator()
-
-
Method Details
-
getText
- Specified by:
getTextin classAlternativeUiTextProvider
-