public class ArtifactDirectoryBuilderImpl extends Object implements ArtifactDirectoryBuilder
Constructor and Description |
---|
ArtifactDirectoryBuilderImpl(ArtifactPathBuilder pathBuilder) |
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 |
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.
|
static boolean |
isArtifactDirectory(File directory)
Returns true if the specified directory looks like it could be an artifact directory.
|
public ArtifactDirectoryBuilderImpl(ArtifactPathBuilder pathBuilder)
public File getRootDirectory()
ArtifactDirectoryBuilder
File
objects.getRootDirectory
in interface ArtifactDirectoryBuilder
public File getTemporaryDirectory()
ArtifactDirectoryBuilder
getTemporaryDirectory
in interface ArtifactDirectoryBuilder
public File getArtifactDirectory(Artifact artifact)
ArtifactDirectoryBuilder
getArtifactDirectory
in interface ArtifactDirectoryBuilder
public File getPlanOrientedArtifactDirectory(PlanResultKey planResultKey, ImmutableArtifactDefinitionBase artifactDefinition)
ArtifactDirectoryBuilder
getPlanOrientedArtifactDirectory
in interface ArtifactDirectoryBuilder
public File getChainDirectory(PlanKey planKey)
ArtifactDirectoryBuilder
getChainDirectory
in interface ArtifactDirectoryBuilder
public File getJobOrSharedDirectory(PlanKey planKey)
ArtifactDirectoryBuilder
getJobOrSharedDirectory
in interface ArtifactDirectoryBuilder
public File getBuildDirectory(PlanResultKey planResultKey)
ArtifactDirectoryBuilder
getBuildDirectory
in interface ArtifactDirectoryBuilder
public static boolean isArtifactDirectory(File directory)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.