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. |
File |
getLogFile(Key entityKey,
int resultNumber)
Deprecated.
since 6.5 use
getLogFile(Key, long) |
File |
getLogFile(Key entityKey,
long 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)
Deprecated.
since 6.5 use
getLogFileName(Key, long) |
String |
getLogFileName(Key entityKey,
long 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)
@Deprecated String getLogFileName(@NotNull Key entityKey, int resultNumber)
getLogFileName(Key, long)
String getLogFileName(@NotNull Key entityKey, long resultNumber)
String getLogFileName(ResultKey resultKey)
@Deprecated File getLogFile(Key entityKey, int resultNumber)
getLogFile(Key, long)
File getLogFile(Key entityKey, long 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).Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.