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, implementBlobStoreProvider
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
archive(FilePath workspace, Launcher launcher, BuildListener listener, Map<String,String> artifacts)
void
clearAllStashes(TaskListener listener)
void
copyAllArtifactsAndStashes(Run<?,?> to, TaskListener listener)
boolean
delete()
void
onLoad(Run<?,?> build)
VirtualFile
root()
void
stash(String name, FilePath workspace, Launcher launcher, EnvVars env, TaskListener listener, String includes, String excludes, boolean useDefaultExcludes, boolean allowEmpty)
void
unstash(String name, FilePath workspace, Launcher launcher, EnvVars env, TaskListener listener)
-
-
-
Method Detail
-
onLoad
public void onLoad(@NonNull Run<?,?> build)
- 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
public boolean delete() throws IOException, InterruptedException
- Specified by:
delete
in classArtifactManager
- Throws:
IOException
InterruptedException
-
root
public VirtualFile 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
public void clearAllStashes(TaskListener listener) throws IOException, InterruptedException
- 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
-
-