Class OrasArtifactManagerPageDecorator
java.lang.Object
hudson.model.Descriptor<PageDecorator>
hudson.model.PageDecorator
io.jenkins.plugins.oras_artifacts.OrasArtifactManagerPageDecorator
- All Implemented Interfaces:
ExtensionPoint, Describable<PageDecorator>, Saveable, Loadable, OnMaster
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
@Extension
public class OrasArtifactManagerPageDecorator
extends PageDecorator
Injects a small script (via
header.jelly) that decorates each archived file listed in a
build's artifact list with its OCI reference, but only when the page being rendered is for a
build whose artifact manager is actually OrasArtifactManager.-
Nested Class Summary
Nested classes/interfaces inherited from class Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfNested classes/interfaces inherited from interface ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class PageDecorator
ALLFields inherited from class Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the current page is a build (any of its pages, since the artifact list can be shown both in the "Build Artifacts" fragment on the build page and on the dedicated artifacts page) whose artifact manager isOrasArtifactManager.Methods inherited from class PageDecorator
all, getDescriptor, getUrlMethods inherited from class Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
OrasArtifactManagerPageDecorator
public OrasArtifactManagerPageDecorator()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Whether the current page is a build (any of its pages, since the artifact list can be shown both in the "Build Artifacts" fragment on the build page and on the dedicated artifacts page) whose artifact manager isOrasArtifactManager.
-