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/11ArtifactAccessorimplementation 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 voiddownloadArtifact(String sourceExternalId, String revision, String branchName, String sourcePath, File target, ArtifactInfo artifactInfo)Collection<String>getArtifactSourcePathList(String sourceExternalId, String revision, String branchName)Get artifact list.StringgetArtifactUrl(String sourceExternalId, String revision, String branch, String sourcePath)static StringgetArtifactUrlFromTemplate(String baseURL, String sourceExternalId, String revision, String sourcePath)voidinterrupt()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:
getArtifactUrlin interfaceArtifactAccessor
-
getArtifactSourcePathList
@NotNull public Collection<String> getArtifactSourcePathList(@NotNull String sourceExternalId, @NotNull String revision, @Nullable String branchName) throws ResolvingFailedException
Description copied from interface:ArtifactAccessorGet artifact list. Returns the list of artifacts' paths available for this build;- Specified by:
getArtifactSourcePathListin 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:ArtifactAccessorInterrupt current operation.- Specified by:
interruptin interfaceArtifactAccessor
-
downloadArtifact
public void downloadArtifact(@NotNull String sourceExternalId, @NotNull String revision, @Nullable String branchName, String sourcePath, File target, ArtifactInfo artifactInfo) throws ResolvingFailedException- Specified by:
downloadArtifactin interfaceArtifactAccessor- Throws:
ResolvingFailedException
-
-