Class JCloudsArtifactManager
java.lang.Object
jenkins.model.ArtifactManager
io.jenkins.plugins.artifact_manager_jclouds.JCloudsArtifactManager
- All Implemented Interfaces:
org.jenkinsci.plugins.workflow.flow.StashManager.StashAwareArtifactManager
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public final class JCloudsArtifactManager
extends ArtifactManager
implements org.jenkinsci.plugins.workflow.flow.StashManager.StashAwareArtifactManager
Jenkins artifact/stash implementation using any blob store supported by Apache jclouds.
To offer a new backend, implement
BlobStoreProvider.-
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
-
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
- Specified by:
deletein classArtifactManager- Throws:
IOExceptionInterruptedException
-
root
- Specified by:
rootin classArtifactManager
-
stash
public void stash(String name, FilePath workspace, Launcher launcher, EnvVars env, 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(String name, FilePath workspace, Launcher launcher, EnvVars env, 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- Throws:
IOExceptionInterruptedException
-
copyAllArtifactsAndStashes
public void copyAllArtifactsAndStashes(Run<?, ?> to, TaskListener listener) throws IOException, InterruptedException- Specified by:
copyAllArtifactsAndStashesin interfaceorg.jenkinsci.plugins.workflow.flow.StashManager.StashAwareArtifactManager- Throws:
IOExceptionInterruptedException
-