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 an
artifact list with its OCI reference, but only when that artifact list is for a build whose
artifact manager is actually OrasArtifactManager.
The artifact list appears in two places, both handled here:
- on a build's own page (and its dedicated artifact browser), for that build;
- on the job's overview page, as the "Last Successful Artifacts" summary, for the job's last successful build.
-
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 shows an artifact list backed byOrasArtifactManager.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 shows an artifact list backed byOrasArtifactManager.
-