Interface ServerArtifactHelper
-
public interface ServerArtifactHelper
Helper interface for accessing externally stored artifacts on server. Implementation will be autowired by Spring context.- Since:
- 2017.1
- Author:
- vbedrosova
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ArtifactListData
getArtifactList(java.io.File buildDirectory)
Get external artifacts information from the build found in a specific directory.ArtifactListData
getArtifactList(SBuild build)
Get external artifacts information from the build.void
removeFromArtifactList(SBuild build, java.util.List<java.lang.String> artifacts)
Removes the provided artifacts from the artifact list of the provided build
-
-
-
Method Detail
-
getArtifactList
@Nullable ArtifactListData getArtifactList(@NotNull SBuild build) throws java.io.IOException
Get external artifacts information from the build.- Parameters:
build
- to get information from- Returns:
- available external artifacts info.
null
if no information is available - Throws:
java.io.IOException
- in case of errors while reading the artifacts information file- Since:
- 2017.1
-
getArtifactList
@Nullable ArtifactListData getArtifactList(@NotNull java.io.File buildDirectory) throws java.io.IOException
Get external artifacts information from the build found in a specific directory.- Parameters:
buildDirectory
- directory where build is located- Returns:
- available external artifacts info.
null
if no information is available - Throws:
java.io.IOException
- in case of errors while reading the artifacts information file- Since:
- 2017.1
-
removeFromArtifactList
void removeFromArtifactList(@NotNull SBuild build, @NotNull java.util.List<java.lang.String> artifacts) throws java.io.IOException
Removes the provided artifacts from the artifact list of the provided build- Throws:
java.io.IOException
- in case of errors while removing
-
-