Class ArtifactoryArtifactManager
java.lang.Object
jenkins.model.ArtifactManager
io.jenkins.plugins.artifactory_artifacts.ArtifactoryArtifactManager
- All Implemented Interfaces:
org.jenkinsci.plugins.workflow.flow.StashManager.StashAwareArtifactManager
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class ArtifactoryArtifactManager
extends ArtifactManager
implements org.jenkinsci.plugins.workflow.flow.StashManager.StashAwareArtifactManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classItem listener that listens to item deletion and location change events and updates the storage accordingly -
Constructor Summary
ConstructorsConstructorDescriptionArtifactoryArtifactManager(Run<?, ?> build, ArtifactoryGenericArtifactConfig config) -
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
-
ArtifactoryArtifactManager
-
-
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(@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
public void clearAllStashes(@NonNull TaskListener listener) throws IOException, InterruptedException - Specified by:
clearAllStashesin interfaceorg.jenkinsci.plugins.workflow.flow.StashManager.StashAwareArtifactManager- Throws:
IOExceptionInterruptedException
-
copyAllArtifactsAndStashes
public void copyAllArtifactsAndStashes(@NonNull Run<?, ?> to, @NonNull TaskListener listener) throws IOException, InterruptedException- Specified by:
copyAllArtifactsAndStashesin interfaceorg.jenkinsci.plugins.workflow.flow.StashManager.StashAwareArtifactManager- Throws:
IOExceptionInterruptedException
-