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 ofConsoleUrlProviderthat uses the standard Jenkins console view.Exists so that users have a way to override
ConsoleUrlProviderGlobalConfigurationand specify the default console view if desired viaConsoleUrlProviderUserProperty.- Since:
- 2.433
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultConsoleUrlProvider.DescriptorImpl
-
Field Summary
-
Fields inherited from interface jenkins.console.ConsoleUrlProvider
LOGGER
-
-
Constructor Summary
Constructors Constructor Description DefaultConsoleUrlProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetConsoleUrl(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
-
-
-
-
Method Detail
-
getConsoleUrl
public String getConsoleUrl(Run<?,?> run)
Description copied from interface:ConsoleUrlProviderGet 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:
getConsoleUrlin interfaceConsoleUrlProvider- Parameters:
run- the build- Returns:
- the URL for the console for the specified build, relative to the context of Jenkins, or
nullif this implementation does not want to server a special console view for this build.
-
-