public interface StorageLocationService
Modifier and Type | Method and Description |
---|---|
ArtifactDirectoryBuilder |
getArtifactDirectoryBuilder(File rootArtifactDirectory)
Returns an ArtifactDirectoryBuilder which can be used to build
File objects
pointing to artifacts stored on the local filesystem. |
ArtifactPathBuilder |
getArtifactPathBuilder(char separatorChar)
Returns an ArtifactPathBuilder which can be used to construct paths to stored artifacts.
|
ArtifactPathBuilder |
getArtifactPathBuilder(String rootArtifactPath,
char separatorChar)
Returns an ArtifactPathBuilder which can be used to construct paths to stored artifacts.
|
File |
getBuildDataDirectory(Key key)
Returns the top level build data directory for a plan or deployment project.
|
File |
getBuildDownloadDataDirectory(Key key)
Returns the "download data" directory for a plan or deployment project.
|
File |
getBuildLogsDirectory(Key key)
Eg.
|
File |
getBuildResultsDirectory(Key buildKey)
Eg.
|
ArtifactDirectoryBuilder |
getDefaultArtifactDirectoryBuilder()
Returns the default ArtifactDirectoryBuilder which can be used to build
File objects
pointing to artifacts stored on the local filesystem in the default location. |
ArtifactStorage |
getDefaultArtifactStorage()
Deprecated.
since 5.12 use
getDefaultArtifactDirectoryBuilder() instead. |
File |
getLogFile(Key entityKey,
int resultNumber)
Returns the location of the log file for the specified build or deployment.
|
File |
getLogFile(ResultKey resultKey)
Returns the location of the log file for the specified build or deployment.
|
String |
getLogFileName(Key entityKey,
int resultNumber)
Returns the standard name of the log file for the specified build or deployment.
|
String |
getLogFileName(ResultKey resultKey)
Returns the standard name of the log file for the specified build or deployment.
|
File |
getRootBuildDataDirectory()
Returns the root build data directory for all plans and deployment projects.
|
File getRootBuildDataDirectory()
File getBuildDataDirectory(Key key)
File getBuildResultsDirectory(Key buildKey)
File getBuildDownloadDataDirectory(Key key)
File getBuildLogsDirectory(Key key)
String getLogFileName(@NotNull Key entityKey, int resultNumber)
String getLogFileName(ResultKey resultKey)
File getLogFile(Key entityKey, int resultNumber)
File getLogFile(ResultKey resultKey)
ArtifactPathBuilder getArtifactPathBuilder(String rootArtifactPath, char separatorChar)
ArtifactPathBuilder getArtifactPathBuilder(char separatorChar)
ArtifactDirectoryBuilder getArtifactDirectoryBuilder(File rootArtifactDirectory)
File
objects
pointing to artifacts stored on the local filesystem. This version of the method takes a
rootArtifactDirectory parameter.ArtifactDirectoryBuilder getDefaultArtifactDirectoryBuilder()
File
objects
pointing to artifacts stored on the local filesystem in the default location. This method is
only available to code running on the server, not on remote agents (remote agents never store
artifacts on the local filesystem).@Deprecated ArtifactStorage getDefaultArtifactStorage()
getDefaultArtifactDirectoryBuilder()
instead.File
objects
pointing to artifacts stored on the local filesystem in the default location. This method is
only available to code running on the server, not on remote agents (remote agents never store
artifacts on the local filesystem).Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.