Interface ServerArtifactHelper
-
- All Known Implementing Classes:
ServerArtifactHelperImpl
public interface ServerArtifactHelperHelper 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 ArtifactListDatagetArtifactList(File buildDirectory)Get external artifacts information from the build found in a specific directory.ArtifactListDatagetArtifactList(SBuild build)Get external artifacts information from the build.voidremoveFromArtifactList(SBuild build, List<String> artifacts)Removes the provided artifacts from the artifact list of the provided build
-
-
-
Method Detail
-
getArtifactList
@Nullable ArtifactListData getArtifactList(@NotNull SBuild build) throws IOException
Get external artifacts information from the build.- Parameters:
build- to get information from- Returns:
- available external artifacts info.
nullif no information is available - Throws:
IOException- in case of errors while reading the artifacts information file- Since:
- 2017.1
-
getArtifactList
@Nullable ArtifactListData getArtifactList(@NotNull File buildDirectory) throws 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.
nullif no information is available - Throws:
IOException- in case of errors while reading the artifacts information file- Since:
- 2017.1
-
removeFromArtifactList
void removeFromArtifactList(@NotNull SBuild build, @NotNull List<String> artifacts) throws IOExceptionRemoves the provided artifacts from the artifact list of the provided build- Throws:
IOException- in case of errors while removing
-
-