Class ServerArtifactHelperImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.artifacts.ServerArtifactHelperImpl
-
- All Implemented Interfaces:
ServerArtifactHelper
public class ServerArtifactHelperImpl extends Object implements ServerArtifactHelper
-
-
Constructor Summary
Constructors Constructor Description ServerArtifactHelperImpl(BuildsManager buildsManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArtifactListData
getArtifactList(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, List<String> artifacts)
Removes the provided artifacts from the artifact list of the provided build
-
-
-
Constructor Detail
-
ServerArtifactHelperImpl
public ServerArtifactHelperImpl(@NotNull BuildsManager buildsManager)
-
-
Method Detail
-
getArtifactList
@Nullable public ArtifactListData getArtifactList(@NotNull SBuild build) throws IOException
Description copied from interface:ServerArtifactHelper
Get external artifacts information from the build.- Specified by:
getArtifactList
in interfaceServerArtifactHelper
- Parameters:
build
- to get information from- Returns:
- available external artifacts info.
null
if no information is available - Throws:
IOException
- in case of errors while reading the artifacts information file
-
getArtifactList
@Nullable public ArtifactListData getArtifactList(@NotNull File buildDirectory) throws IOException
Description copied from interface:ServerArtifactHelper
Get external artifacts information from the build found in a specific directory.- Specified by:
getArtifactList
in interfaceServerArtifactHelper
- Parameters:
buildDirectory
- directory where build is located- Returns:
- available external artifacts info.
null
if no information is available - Throws:
IOException
- in case of errors while reading the artifacts information file
-
removeFromArtifactList
public void removeFromArtifactList(@NotNull SBuild build, @NotNull List<String> artifacts) throws FileNotFoundException
Description copied from interface:ServerArtifactHelper
Removes the provided artifacts from the artifact list of the provided build- Specified by:
removeFromArtifactList
in interfaceServerArtifactHelper
- Throws:
FileNotFoundException
-
-