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.
|
File |
getLogFile(ResultKey resultKey,
String suffix)
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.
|
List<String> |
getLogsFileNames(ResultKey resultKey)
Return all log filenames sorted by age (newest first).
|
List<String> |
getOldLogsFileNames(ResultKey resultKey)
If a result has logs from previous runs, return their filenames sorted by age (newest first).
|
File |
getRootBuildDataDirectory()
Returns the root build data directory for all plans and deployment projects.
|
void |
renameOldBuildLogsIfNeeded(ResultKey resultKey)
Makes sure that build log file for the current result is empty, by renaming any pre-existing build logs.
|
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)
File getLogFile(@NotNull ResultKey resultKey, @Nullable String suffix)
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).void renameOldBuildLogsIfNeeded(@NotNull ResultKey resultKey)
List<String> getOldLogsFileNames(@NotNull ResultKey resultKey)
renameOldBuildLogsIfNeeded(ResultKey)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.