Class OrasRetriever

java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.libs.LibraryRetriever>
org.jenkinsci.plugins.workflow.libs.LibraryRetriever
io.jenkins.plugins.pipeline.lib.oras.OrasRetriever
All Implemented Interfaces:
ExtensionPoint, Describable<org.jenkinsci.plugins.workflow.libs.LibraryRetriever>

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class OrasRetriever extends org.jenkinsci.plugins.workflow.libs.LibraryRetriever
  • Field Details

    • ARTIFACT_TYPE

      public static final land.oras.ArtifactType ARTIFACT_TYPE
      Required artifact type for ORAS retriever.
  • Constructor Details

    • OrasRetriever

      @DataBoundConstructor public OrasRetriever(String containerRef)
  • Method Details

    • retrieve

      public void retrieve(@NonNull String name, @NonNull String version, boolean changelog, @NonNull FilePath target, @NonNull Run<?,?> run, @NonNull TaskListener listener) throws Exception
      Specified by:
      retrieve in class org.jenkinsci.plugins.workflow.libs.LibraryRetriever
      Throws:
      Exception
    • retrieve

      public void retrieve(@NonNull String name, @NonNull String version, @NonNull FilePath target, @NonNull Run<?,?> run, @NonNull TaskListener listener) throws Exception
      Specified by:
      retrieve in class org.jenkinsci.plugins.workflow.libs.LibraryRetriever
      Throws:
      Exception
    • getCredentialsId

      public String getCredentialsId()
    • setCredentialsId

      @DataBoundSetter public void setCredentialsId(String credentialsId)
    • getContainerRef

      public String getContainerRef()
    • getCredentials

      @Nullable public static com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials getCredentials(Item item, String credentialsId)