public class ArtifactPathBuilderImpl extends Object implements ArtifactPathBuilder
| Constructor and Description |
|---|
ArtifactPathBuilderImpl(char separatorChar)
Constructor for building relative paths.
|
ArtifactPathBuilderImpl(String rootPath,
char separatorChar)
Constructor for building absolute paths.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getArtifactPath(Artifact artifact)
Returns a plan-oriented or global storage path for the supplied artifact, based on the return value
of artifact.isGloballyStored().
|
String |
getBuildPath(PlanResultKey planResultKey)
Returns [artifact-root] / [chain-storage-tag] / [job-part] / [build-part]
[job-part] will be "shared" if the parameter points to a chain rather than a job.
|
String |
getChainPath(PlanKey planKey)
Returns [artifact-root] / [chain-storage-tag]
|
String |
getJobOrSharedPath(PlanKey planKey)
Returns [artifact-root] / [chain-storage-tag] / [job-part]
[job-part] will be "shared" if the parameter points to a chain rather than a job.
|
String |
getPlanOrientedArtifactPath(PlanResultKey planResultKey,
ImmutableArtifactDefinitionBase artifactDefinition)
Always returns a plan-oriented path, never a global storage path.
|
String |
getRootPath()
Returns the root artifact storage path that this instance is using to build absolute paths, or null if this
instance is configured to build relative paths.
|
String |
getTemporaryPath()
Returns a path that can be used for temporary storage underneath the artifact root storage path.
|
public ArtifactPathBuilderImpl(String rootPath, char separatorChar)
public ArtifactPathBuilderImpl(char separatorChar)
public String getRootPath()
ArtifactPathBuildergetRootPath in interface ArtifactPathBuilderpublic String getTemporaryPath()
ArtifactPathBuildergetTemporaryPath in interface ArtifactPathBuilderpublic String getArtifactPath(Artifact artifact)
ArtifactPathBuildergetArtifactPath in interface ArtifactPathBuilderpublic String getPlanOrientedArtifactPath(PlanResultKey planResultKey, @Nullable ImmutableArtifactDefinitionBase artifactDefinition)
ArtifactPathBuildergetPlanOrientedArtifactPath in interface ArtifactPathBuilderpublic String getChainPath(PlanKey planKey)
ArtifactPathBuildergetChainPath in interface ArtifactPathBuilderpublic String getJobOrSharedPath(PlanKey planKey)
ArtifactPathBuildergetJobOrSharedPath in interface ArtifactPathBuilderpublic String getBuildPath(PlanResultKey planResultKey)
ArtifactPathBuildergetBuildPath in interface ArtifactPathBuilderCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.