Class DisplayURLProvider
java.lang.Object
org.jenkinsci.plugins.displayurlapi.DisplayURLProvider
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
ClassicDisplayURLProvider
Generates URLs for well known UI locations for use in notifications (e.g. mailer, HipChat, Slack,
IRC, etc) Extensible to allow plugins to override common URLs (e.g. Blue Ocean or another future
secondary UI)
Implementations should generally extend ClassicDisplayURLProvider and delegate to it for unsupported
builds instead of extending this class directly.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionList<DisplayURLProvider>all()Returns all theDisplayURLProviderimplementations.static DisplayURLProviderget()Returns theDisplayURLProviderto use for generating links to be given to users.getArtifactsURL(Run<?, ?> run) Fully qualified URL for a page that displays artifacts for a Run.abstract StringgetChangesURL(Run<?, ?> run) Fully qualified URL for a page that displays changes for a project.static DisplayURLProviderReturns the singleton instance of theClassicDisplayURLProviderextension.Display name of this provider e.g.abstract StringFully qualified URL for a Jobs homegetName()Name of provider to be used as an id.static DisplayURLProviderSelects the provider that should be used to redirect users from the display URLs generated by the provider return byget()to an actual page.getRoot()Fully qualified URL for the Root display URLabstract StringFully qualified URL for a Runabstract StringgetTestsURL(Run<?, ?> run) Fully qualified URL for a page that displays tests for a Run.
-
Constructor Details
-
DisplayURLProvider
public DisplayURLProvider()
-
-
Method Details
-
get
Returns theDisplayURLProviderto use for generating links to be given to users.- Returns:
- DisplayURLProvider
- See Also:
-
all
Returns all theDisplayURLProviderimplementations.- Returns:
- all the
DisplayURLProviderimplementations.
-
getDefault
Returns the singleton instance of theClassicDisplayURLProviderextension. -
getRoot
Fully qualified URL for the Root display URL -
getDisplayName
Display name of this provider e.g. "Jenkins Classic", "Blue Ocean", etc -
getName
Name of provider to be used as an id. Do not use i18n -
getRunURL
Fully qualified URL for a Run -
getArtifactsURL
Fully qualified URL for a page that displays artifacts for a Run. -
getChangesURL
Fully qualified URL for a page that displays changes for a project. -
getTestsURL
Fully qualified URL for a page that displays tests for a Run. -
getJobURL
Fully qualified URL for a Jobs home -
getPreferredProvider
Selects the provider that should be used to redirect users from the display URLs generated by the provider return byget()to an actual page.Precedence is as follows, stopping at the first non-null value:
PreferredProviderUserPropertyDefaultDisplayURLProviderGlobalConfigurationJENKINS_DISPLAYURL_PROVIDER_ENVJENKINS_DISPLAYURL_PROVIDER_PROP- The provider extension with the highest ordinal value that is not an instance of
ClassicDisplayURLProvider ClassicDisplayURLProvider
- See Also:
-
getUserPreferredProviderProperty
-