Package jetbrains.buildServer.artifacts
Interface ArtifactAccessor
-
- All Known Implementing Classes:
TeamCityArtifactAccessor
public interface ArtifactAccessor
Author: Nikita.Skvortsov Date: 1/11/11 Describes access to artifacts of TeamCity builds Implementations of this interface are expected to provide listing and access to artifacts. Separate instance of this class is created for each artifact dependency during resolution process
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
downloadArtifact(String sourceExternalId, String revision, String branchName, String sourcePath, File target, ArtifactInfo artifactInfo)
Collection<String>
getArtifactSourcePathList(String sourceExternalId, String revision, String branchName)
Get artifact list.String
getArtifactUrl(String sourceExternalId, String revision, String branch, String sourcePath)
void
interrupt()
Interrupt current operation.
-
-
-
Method Detail
-
getArtifactUrl
@NotNull String getArtifactUrl(String sourceExternalId, @NotNull String revision, @Nullable String branch, @NotNull String sourcePath)
-
getArtifactSourcePathList
@NotNull Collection<String> getArtifactSourcePathList(@NotNull String sourceExternalId, @NotNull String revision, @Nullable String branchName) throws ResolvingFailedException
Get artifact list. Returns the list of artifacts' paths available for this build;- Parameters:
sourceExternalId
- source build type external idrevision
- revision which identifies a build on the server- Returns:
- list of all source paths of artifacts
- Throws:
ResolvingFailedException
-
interrupt
void interrupt()
Interrupt current operation.- Since:
- 2017.1
-
downloadArtifact
void downloadArtifact(@NotNull String sourceExternalId, @NotNull String revision, @Nullable String branchName, String sourcePath, File target, ArtifactInfo artifactInfo) throws ResolvingFailedException
- Throws:
ResolvingFailedException
-
-