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(@NotNull Artifact artifact)
Move artifact to a 'global storage'.
|
void |
removeAllArtifactsOfChain(@NotNull PlanKey planKey,
@NotNull Iterable<PlanKey> jobKeys,
@NotNull Map<String,String> artifactHandlersConfiguration)
Removes artifact files for all results of a single chain.
|
void |
removeArtifactFromStorage(@NotNull Artifact artifact)
Removes artifact files for a single artifact.
|
void |
removeArtifactsFromStorage(@NotNull Iterable<ArtifactLink> artifactLinks)
Removes artifact files for all plan results attached to supplied links.
|
void |
removeArtifactsFromStorage(@NotNull PlanKey planKey)
Removes artifact files for all results of a single.
|
void |
removeArtifactsFromStorage(@NotNull PlanKey planKey,
@NotNull Map<String,String> artifactHandlersConfiguration)
Removes artifact files for all results of a single.
|
boolean |
removeArtifactsIfOrphaned(@NotNull 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, republish, retrieve, retrieve, validateArtifactsSize
protected void markSubscriptionAsConsumed(PlanResultKey planResultKey, ArtifactSubscriptionContext artifactSubscription, String artifactLinkType)
markSubscriptionAsConsumed
in class AbstractArtifactManager
public void moveArtifactToGlobalStorage(@NotNull @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 @NotNull Artifact artifact)
ArtifactManager
removeArtifactFromStorage
in interface ArtifactManager
removeArtifactFromStorage
in class AbstractArtifactManager
public void removeArtifactsFromStorage(@NotNull @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 @NotNull PlanKey planKey, @NotNull @NotNull Map<String,String> artifactHandlersConfiguration)
ArtifactManager
Plan
Should not remove artifacts that were moved to global storage.removeArtifactsFromStorage
in interface ArtifactManager
removeArtifactsFromStorage
in class AbstractArtifactManager
public void removeAllArtifactsOfChain(@NotNull @NotNull PlanKey planKey, @NotNull @NotNull Iterable<PlanKey> jobKeys, @NotNull @NotNull Map<String,String> artifactHandlersConfiguration)
ArtifactManager
Chain
Should not remove artifacts that were moved to global storage.removeAllArtifactsOfChain
in interface ArtifactManager
removeAllArtifactsOfChain
in class AbstractArtifactManager
public void removeArtifactsFromStorage(@NotNull @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 @NotNull List<Long> artifactIds)
ArtifactManager
removeArtifactsIfOrphaned
in interface ArtifactManager
removeArtifactsIfOrphaned
in class AbstractArtifactManager
public void cleanupTemporaryArtifactStorage()
Copyright © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.