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 Details

    • getIconFileName

      @CheckForNull public String getIconFileName()
      Specified by:
      getIconFileName in interface Action
    • getDisplayName

      @CheckForNull public String getDisplayName()
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface ModelObject
    • getUrlName

      @CheckForNull public String getUrlName()
      Specified by:
      getUrlName in interface Action
    • 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