public class LocalArtifactManager extends AbstractArtifactManager
ARTIFACT_SECURITY_TOKEN
LOGS_FOR_BUILD
Constructor and Description |
---|
LocalArtifactManager() |
Modifier and Type | Method and Description |
---|---|
void |
cleanupTemporaryArtifactStorage()
Cleanup temporary artifact storage
|
protected void |
markSubscriptionAsConsumed(PlanResultKey planResultKey,
ArtifactSubscriptionContext artifactSubscription,
String artifactLinkType) |
void |
moveArtifactToGlobalStorage(Artifact artifact)
Move artifact to a 'global storage'.
|
void |
removeArtifactFromStorage(Artifact artifact)
Removes artifact files for a single artifact.
|
void |
removeArtifactsFromStorage(Iterable<ArtifactLink> artifactLinks)
Removes artifact files for all plan results attached to supplied links.
|
void |
removeArtifactsFromStorage(PlanKey planKey)
Removes artifact files for all results of a single.
|
boolean |
removeArtifactsIfOrphaned(List<Long> artifactIds)
Removes artifacts identified by the ids on the list, but only if they are not referenced by any deployment version or build result.
|
boolean |
removeOrphanedArtifacts() |
findMatchingArtifact, getArtifactHandlers, getArtifactHandlersForAgent, publish, publish, publishFileSet, retrieve, retrieve, validateArtifactsSize
protected void markSubscriptionAsConsumed(PlanResultKey planResultKey, ArtifactSubscriptionContext artifactSubscription, String artifactLinkType)
markSubscriptionAsConsumed
in class AbstractArtifactManager
public void moveArtifactToGlobalStorage(@NotNull Artifact artifact) throws IOException
ArtifactManager
ArtifactManager.removeArtifactFromStorage(Artifact)
is called.
It is not a requirement to physically move the files as long as the above contract is fulfilled.moveArtifactToGlobalStorage
in interface ArtifactManager
moveArtifactToGlobalStorage
in class AbstractArtifactManager
IOException
public void removeArtifactFromStorage(@NotNull Artifact artifact)
ArtifactManager
removeArtifactFromStorage
in interface ArtifactManager
removeArtifactFromStorage
in class AbstractArtifactManager
public void removeArtifactsFromStorage(@NotNull PlanKey planKey)
ArtifactManager
Plan
Should not remove artifacts that were moved to global storage.removeArtifactsFromStorage
in interface ArtifactManager
removeArtifactsFromStorage
in class AbstractArtifactManager
public void removeArtifactsFromStorage(@NotNull Iterable<ArtifactLink> artifactLinks)
ArtifactManager
ResultsSummary
Should not remove artifacts that were moved to global storage.removeArtifactsFromStorage
in interface ArtifactManager
removeArtifactsFromStorage
in class AbstractArtifactManager
public boolean removeOrphanedArtifacts()
removeOrphanedArtifacts
in interface ArtifactManager
removeOrphanedArtifacts
in class AbstractArtifactManager
public boolean removeArtifactsIfOrphaned(@NotNull List<Long> artifactIds)
ArtifactManager
removeArtifactsIfOrphaned
in interface ArtifactManager
removeArtifactsIfOrphaned
in class AbstractArtifactManager
public void cleanupTemporaryArtifactStorage()
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.