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, so the UI can show it (and let users copy it to run
oras pull <reference> themselves).
Only ever attached to a build by OrasArtifactActionFactory when that build's
artifact manager is actually 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).
-
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
-