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 TypeMethodDescriptionvoid
archive
(FilePath workspace, Launcher launcher, BuildListener listener, Map<String, String> artifacts) void
clearAllStashes
(TaskListener listener) void
copyAllArtifactsAndStashes
(Run<?, ?> to, TaskListener listener) boolean
delete()
void
root()
void
stash
(String name, FilePath workspace, Launcher launcher, EnvVars env, TaskListener listener, String includes, String excludes, boolean useDefaultExcludes, boolean allowEmpty) void
-
Method Details
-
onLoad
- Specified by:
onLoad
in classArtifactManager
-
archive
public void archive(FilePath workspace, Launcher launcher, BuildListener listener, Map<String, String> artifacts) throws IOException, InterruptedException- Specified by:
archive
in classArtifactManager
- Throws:
IOException
InterruptedException
-
delete
- Specified by:
delete
in classArtifactManager
- Throws:
IOException
InterruptedException
-
root
- Specified by:
root
in 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:
stash
in interfaceorg.jenkinsci.plugins.workflow.flow.StashManager.StashAwareArtifactManager
- Throws:
IOException
InterruptedException
-
unstash
public void unstash(String name, FilePath workspace, Launcher launcher, EnvVars env, TaskListener listener) throws IOException, InterruptedException - Specified by:
unstash
in interfaceorg.jenkinsci.plugins.workflow.flow.StashManager.StashAwareArtifactManager
- Throws:
IOException
InterruptedException
-
clearAllStashes
- Specified by:
clearAllStashes
in interfaceorg.jenkinsci.plugins.workflow.flow.StashManager.StashAwareArtifactManager
- Throws:
IOException
InterruptedException
-
copyAllArtifactsAndStashes
public void copyAllArtifactsAndStashes(Run<?, ?> to, TaskListener listener) throws IOException, InterruptedException- Specified by:
copyAllArtifactsAndStashes
in interfaceorg.jenkinsci.plugins.workflow.flow.StashManager.StashAwareArtifactManager
- Throws:
IOException
InterruptedException
-