Package io.jenkins.blueocean
Class BlueOceanUIProvider
java.lang.Object
io.jenkins.blueocean.BlueOceanUIProvider
- All Implemented Interfaces:
ExtensionPoint
BlueOcean UI provider.
Provides basic UI configuration.
- Author:
- Vivek Pandey
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionList<BlueOceanUIProvider>
all()
abstract String
Gives landing page path.abstract String
Root url where Jenkins is hosted.abstract String
Gives url base prefix where blueocean is hosted.
-
Constructor Details
-
BlueOceanUIProvider
public BlueOceanUIProvider()
-
-
Method Details
-
getRootUrl
Root url where Jenkins is hosted. Must end with '/' suffix.- Returns:
- it can return null if request is not made in context of HTTP request or root url is not configured.
-
getUrlBasePrefix
Gives url base prefix where blueocean is hosted. e.g. "blue". It must not include '/' prefix or suffix.- Returns:
- url base
-
getLandingPagePath
Gives landing page path. This path is suffixes to getUrlBase(). e.g. if the landing page is at URL, http://localhost:8080/jenkins/blue/organization/org1/pipelines/ then this method should return "/organization/org1/pipelines/". Must have '/' prefix and suffix.- Returns:
- landing page URL path
-
all
-