Class OrasArtifactManager
java.lang.Object
jenkins.model.ArtifactManager
io.jenkins.plugins.oras_artifacts.OrasArtifactManager
- All Implemented Interfaces:
org.jenkinsci.plugins.workflow.flow.StashManager.StashAwareArtifactManager
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class OrasArtifactManager
extends ArtifactManager
implements org.jenkinsci.plugins.workflow.flow.StashManager.StashAwareArtifactManager
ArtifactManager storing archived artifacts and stashes in an OCI registry through ORAS.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidarchive(FilePath workspace, Launcher launcher, BuildListener listener, Map<String, String> artifacts) voidclearAllStashes(TaskListener listener) voidcopyAllArtifactsAndStashes(Run<?, ?> to, TaskListener listener) booleandelete()voidroot()voidstash(String name, FilePath workspace, Launcher launcher, EnvVars env, TaskListener listener, String includes, String excludes, boolean useDefaultExcludes, boolean allowEmpty) void
-
Constructor Details
-
OrasArtifactManager
-
-
Method Details
-
onLoad
- Specified by:
onLoadin classArtifactManager
-
archive
public void archive(FilePath workspace, Launcher launcher, BuildListener listener, Map<String, String> artifacts) throws IOException, InterruptedException- Specified by:
archivein classArtifactManager- Throws:
IOExceptionInterruptedException
-
delete
public boolean delete()- Specified by:
deletein classArtifactManager
-
root
- Specified by:
rootin classArtifactManager
-
stash
public void stash(@NonNull String name, @NonNull FilePath workspace, @NonNull Launcher launcher, @NonNull EnvVars env, @NonNull TaskListener listener, String includes, String excludes, boolean useDefaultExcludes, boolean allowEmpty) throws IOException, InterruptedException - Specified by:
stashin interfaceorg.jenkinsci.plugins.workflow.flow.StashManager.StashAwareArtifactManager- Throws:
IOExceptionInterruptedException
-
unstash
public void unstash(@NonNull String name, @NonNull FilePath workspace, @NonNull Launcher launcher, @NonNull EnvVars env, @NonNull TaskListener listener) throws IOException, InterruptedException - Specified by:
unstashin interfaceorg.jenkinsci.plugins.workflow.flow.StashManager.StashAwareArtifactManager- Throws:
IOExceptionInterruptedException
-
clearAllStashes
- Specified by:
clearAllStashesin interfaceorg.jenkinsci.plugins.workflow.flow.StashManager.StashAwareArtifactManager
-
copyAllArtifactsAndStashes
public void copyAllArtifactsAndStashes(@NonNull Run<?, ?> to, @NonNull TaskListener listener) throws IOException- Specified by:
copyAllArtifactsAndStashesin interfaceorg.jenkinsci.plugins.workflow.flow.StashManager.StashAwareArtifactManager- Throws:
IOException
-