Class OrasArtifactAction
java.lang.Object
io.jenkins.plugins.oras_artifacts.OrasArtifactAction
- All Implemented Interfaces:
Action,ModelObject
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class OrasArtifactAction
extends Object
implements Action
A small, per-build action exposing the OCI reference of each file archived through
OrasArtifactManager-
Method Summary
Modifier and TypeMethodDescriptionvoiddoReference(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, String path) Return the OCI reference of the archived file at the given path, as JSON, or a 404 if no such file was archived (or the caller lacks permission to see it).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Action
getDescription, getEvent, getGroup, getSemantic, isVisibleInContextMenu
-
Method Details
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
doReference
@GET public void doReference(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, @QueryParameter String path) throws IOException Return the OCI reference of the archived file at the given path, as JSON, or a 404 if no such file was archived (or the caller lacks permission to see it).- Throws:
IOException
-