public interface ArtifactDirectoryBuilder
File
objects that point to artifact directories on the local filesystem.
This is essentially the same as an ArtifactPathBuilder
configured to build absolute paths, except
that all the methods return File
objects instead of string paths.
Objects implementing this interface can be obtained from the StorageLocationService
.
Modifier and Type | Method and Description |
---|---|
File |
getArtifactDirectory(Artifact artifact)
Returns a plan-oriented or global storage directory for the supplied artifact (based on the return value
of artifact.isGloballyStored().
|
File |
getBuildDirectory(PlanResultKey planResultKey)
Returns [artifact-root] / [chain-part] / [job-part] / [build-part]
[job-part] will be "shared" if the parameter points to a chain rather than a job.
|
File |
getChainDirectory(PlanKey planKey)
Returns [artifact-root] / [chain-part]
|
File |
getEntityOrientedArtifactDirectory(ResultKey resultKey,
ImmutableArtifactDefinitionBase artifactDefinition)
Always returns a entity-oriented directory, never a global storage directory.
|
File |
getJobOrSharedDirectory(PlanKey planKey)
Returns [artifact-root] / [chain-part] / [job-part]
[job-part] will be "shared" if the parameter points to a chain rather than a job.
|
File |
getPlanOrientedArtifactDirectory(PlanResultKey planResultKey,
ImmutableArtifactDefinitionBase artifactDefinition)
Always returns a plan-oriented directory, never a global storage directory.
|
File |
getRootDirectory()
Returns the root artifact storage directory that this instance is using to build absolute
File
objects. |
File |
getTemporaryDirectory()
Get the directory for temporary storage of artifacts.
|
File getRootDirectory()
File
objects.File getTemporaryDirectory()
File getArtifactDirectory(Artifact artifact)
File getPlanOrientedArtifactDirectory(PlanResultKey planResultKey, ImmutableArtifactDefinitionBase artifactDefinition)
File getEntityOrientedArtifactDirectory(ResultKey resultKey, ImmutableArtifactDefinitionBase artifactDefinition)
File getJobOrSharedDirectory(PlanKey planKey)
File getBuildDirectory(PlanResultKey planResultKey)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.