Class TeamCityArtifactAccessor
- java.lang.Object
-
- jetbrains.buildServer.artifacts.impl.TeamCityArtifactAccessor
-
- All Implemented Interfaces:
ArtifactAccessor
public class TeamCityArtifactAccessor extends Object implements ArtifactAccessor
Author: Nikita.Skvortsov Date: 1/11/11ArtifactAccessor
implementation based on available Ivy settings.
-
-
Constructor Summary
Constructors Constructor Description TeamCityArtifactAccessor(URLContentRetriever retriever, String serverUrl, DownloadedArtifacts downloadedArtifacts)
TeamCityArtifactAccessor(URLContentRetriever retriever, DownloadedArtifacts downloadedArtifacts, String serverUrl, ArtifactCacheProvider cacheProvider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete 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)
static String
getArtifactUrlFromTemplate(String baseURL, String sourceExternalId, String revision, String sourcePath)
void
interrupt()
Interrupt current operation.
-
-
-
Constructor Detail
-
TeamCityArtifactAccessor
@TestOnly public TeamCityArtifactAccessor(@NotNull URLContentRetriever retriever, @NotNull String serverUrl, @NotNull DownloadedArtifacts downloadedArtifacts)
-
TeamCityArtifactAccessor
public TeamCityArtifactAccessor(@NotNull URLContentRetriever retriever, @NotNull DownloadedArtifacts downloadedArtifacts, @NotNull String serverUrl, @Nullable ArtifactCacheProvider cacheProvider)
-
-
Method Detail
-
getArtifactUrlFromTemplate
public static String getArtifactUrlFromTemplate(@NotNull String baseURL, @NotNull String sourceExternalId, @NotNull String revision, @NotNull String sourcePath)
-
getArtifactUrl
@NotNull public String getArtifactUrl(String sourceExternalId, @NotNull String revision, @Nullable String branch, @NotNull String sourcePath)
- Specified by:
getArtifactUrl
in interfaceArtifactAccessor
-
getArtifactSourcePathList
@NotNull public Collection<String> getArtifactSourcePathList(@NotNull String sourceExternalId, @NotNull String revision, @Nullable String branchName) throws ResolvingFailedException
Description copied from interface:ArtifactAccessor
Get artifact list. Returns the list of artifacts' paths available for this build;- Specified by:
getArtifactSourcePathList
in interfaceArtifactAccessor
- 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
public void interrupt()
Description copied from interface:ArtifactAccessor
Interrupt current operation.- Specified by:
interrupt
in interfaceArtifactAccessor
-
downloadArtifact
public void downloadArtifact(@NotNull String sourceExternalId, @NotNull String revision, @Nullable String branchName, String sourcePath, File target, ArtifactInfo artifactInfo) throws ResolvingFailedException
- Specified by:
downloadArtifact
in interfaceArtifactAccessor
- Throws:
ResolvingFailedException
-
-