Class AzureArtifactManager
- java.lang.Object
-
- jenkins.model.ArtifactManager
-
- com.microsoft.jenkins.artifactmanager.AzureArtifactManager
-
- All Implemented Interfaces:
org.jenkinsci.plugins.workflow.flow.StashManager.StashAwareArtifactManager
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public final class AzureArtifactManager extends ArtifactManager implements org.jenkinsci.plugins.workflow.flow.StashManager.StashAwareArtifactManager
-
-
Constructor Summary
Constructors Constructor Description AzureArtifactManager(Run<?,?> build, AzureArtifactConfig config)
-
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<?,?> aBuild)
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)
-
-
-
Constructor Detail
-
AzureArtifactManager
public AzureArtifactManager(Run<?,?> build, AzureArtifactConfig config)
-
-
Method Detail
-
onLoad
public void onLoad(Run<?,?> aBuild)
- 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(@NonNull String name, @NonNull FilePath workspace, @NonNull Launcher launcher, @NonNull EnvVars env, @NonNull TaskListener listener, @CheckForNull String includes, @CheckForNull 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(@NonNull String name, @NonNull FilePath workspace, @NonNull Launcher launcher, @NonNull EnvVars env, @NonNull TaskListener listener) throws IOException, InterruptedException
- Specified by:
unstash
in interfaceorg.jenkinsci.plugins.workflow.flow.StashManager.StashAwareArtifactManager
- Throws:
IOException
InterruptedException
-
clearAllStashes
public void clearAllStashes(@NonNull TaskListener listener) throws IOException, InterruptedException
- Specified by:
clearAllStashes
in interfaceorg.jenkinsci.plugins.workflow.flow.StashManager.StashAwareArtifactManager
- Throws:
IOException
InterruptedException
-
copyAllArtifactsAndStashes
public void copyAllArtifactsAndStashes(@NonNull Run<?,?> to, @NonNull TaskListener listener) throws IOException
- Specified by:
copyAllArtifactsAndStashes
in interfaceorg.jenkinsci.plugins.workflow.flow.StashManager.StashAwareArtifactManager
- Throws:
IOException
-
-