Package jenkins.console
Class DefaultConsoleUrlProvider
java.lang.Object
jenkins.console.DefaultConsoleUrlProvider
- All Implemented Interfaces:
Describable<ConsoleUrlProvider>
,ConsoleUrlProvider
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class DefaultConsoleUrlProvider
extends Object
implements ConsoleUrlProvider
Default implementation of
ConsoleUrlProvider
that uses the standard Jenkins console view.
Exists so that users have a way to override ConsoleUrlProviderGlobalConfiguration
and specify the default
console view if desired via ConsoleUrlProviderUserProperty
.
- Since:
- 2.433
-
Nested Class Summary
-
Field Summary
Fields inherited from interface jenkins.console.ConsoleUrlProvider
LOGGER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetConsoleUrl
(Run<?, ?> run) Get a URL relative to the context path of Jenkins which should be used to link to the console for the specified build.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jenkins.console.ConsoleUrlProvider
getDescriptor
-
Constructor Details
-
DefaultConsoleUrlProvider
@DataBoundConstructor public DefaultConsoleUrlProvider()
-
-
Method Details
-
getConsoleUrl
Description copied from interface:ConsoleUrlProvider
Get a URL relative to the context path of Jenkins which should be used to link to the console for the specified build.Should only be used in the context of serving an HTTP request.
- Specified by:
getConsoleUrl
in interfaceConsoleUrlProvider
- Parameters:
run
- the build- Returns:
- the URL for the console for the specified build, relative to the context of Jenkins (should not start with
/
), ornull
if this implementation does not want to serve a special console view for this build.
-