@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public class BlueOceanWebURLBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
static TryBlueOceanURLs |
getTryBlueOceanURLs()
Get the
TryBlueOceanURLs instance for the ModelObject
associated with the current Stapler request. |
static String |
toBlueOceanURL(hudson.model.ModelObject classicModelObject)
Construct a Blue Ocean web URL for the supplied Jenkins
ModelObject. |
@Nonnull public static TryBlueOceanURLs getTryBlueOceanURLs()
TryBlueOceanURLs instance for the ModelObject
associated with the current Stapler request.TryBlueOceanURLs instance for the current classic
Jenkins page. The URL to the Blue Ocean homepage is returned if a more
appropriate URL is not found.@CheckForNull public static String toBlueOceanURL(@Nonnull hudson.model.ModelObject classicModelObject)
ModelObject.classicModelObject - The class Jenkins Model Object from which to construct
a Blue Ocean URL.ModelObject, or null if no URL can be constructed.Copyright © 2016–2017. All rights reserved.