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
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final land.oras.ArtifactType
Required artifact type for ORAS retriever. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials
getCredentials
(Item item, String credentialsId) void
retrieve
(String name, String version, boolean changelog, FilePath target, Run<?, ?> run, TaskListener listener) void
void
setCredentialsId
(String credentialsId) Methods inherited from class org.jenkinsci.plugins.workflow.libs.LibraryRetriever
getDescriptor, validateVersion, validateVersion
-
Field Details
-
ARTIFACT_TYPE
public static final land.oras.ArtifactType ARTIFACT_TYPERequired artifact type for ORAS retriever.
-
-
Constructor Details
-
OrasRetriever
-
-
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 classorg.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 classorg.jenkinsci.plugins.workflow.libs.LibraryRetriever
- Throws:
Exception
-
getCredentialsId
-
setCredentialsId
-
getContainerRef
-
getCredentials
-