Package jetbrains.buildServer.artifacts
Interface ArtifactDependency
-
- All Known Subinterfaces:
ArtifactDependencyEx,SArtifactDependency
- All Known Implementing Classes:
ArtifactDependencyInfo,BaseArtifactDependency,SArtifactDependencyImpl,UnresolvedArtifactDependency
public interface ArtifactDependencyRepresents dependency on one or more artifacts of some build.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetId()Returns artifact dependency idList<String>getReferences()Returns references used in this dependency (in destination path, source paths or in the build number)RevisionRulegetRevisionRule()Returns revision rule for downloaded artifacts.StringgetSourceBuildTypeId()Returns internal id of source build configurationStringgetSourceExternalId()Returns external id of source build configurationStringgetSourceName()Returns name of the source build configurationStringgetSourcePaths()Returns paths to artifacts in source build configurationbooleanisCleanDestinationFolder()Indicates whether destination folder should be cleaned before artifacts downloadingbooleanisSimilarTo(ArtifactDependency dep)Checks if another artifact dependency object is equal to this, ignoring differences in ids (if any)voidreplaceReferences(ValueResolver resolver)Replaces references in this artifact dependency using the provided resolvervoidsetCleanDestinationFolder(boolean cleanDestinationFolder)Set to true if destination directory should be cleaned before artifacts processingvoidsetRevisionRule(RevisionRule revisionRule)Sets new revision rule to this artifact dependencyvoidsetSourceBuildTypeId(String sourceBuildTypeInternalId)Sets new source build configuration idvoidsetSourcePaths(String paths)Sets new source paths to this artifact dependency
-
-
-
Method Detail
-
getSourceBuildTypeId
@NotNull String getSourceBuildTypeId()
Returns internal id of source build configuration- Returns:
- build configuration internal id
-
getSourceExternalId
@NotNull String getSourceExternalId()
Returns external id of source build configuration- Returns:
- build configuration external id
- Since:
- 8.0
-
getSourceName
@NotNull String getSourceName()
Returns name of the source build configuration- Returns:
- name of the source build configuration
-
getSourcePaths
@NotNull String getSourcePaths()
Returns paths to artifacts in source build configuration- Returns:
- collection of paths
-
isCleanDestinationFolder
boolean isCleanDestinationFolder()
Indicates whether destination folder should be cleaned before artifacts downloading- Returns:
- true if destination directory cleaning is required
-
getRevisionRule
@NotNull RevisionRule getRevisionRule()
Returns revision rule for downloaded artifacts. Revision rule identifies build from which artifacts should be downloaded.- Returns:
- revision rule
-
setCleanDestinationFolder
void setCleanDestinationFolder(boolean cleanDestinationFolder)
Set to true if destination directory should be cleaned before artifacts processing- Parameters:
cleanDestinationFolder- true to clean destination directory
-
setSourceBuildTypeId
void setSourceBuildTypeId(@NotNull String sourceBuildTypeInternalId)Sets new source build configuration id- Parameters:
sourceBuildTypeInternalId- new source build configuration id
-
setRevisionRule
void setRevisionRule(@NotNull RevisionRule revisionRule)Sets new revision rule to this artifact dependency- Parameters:
revisionRule- new revision rule
-
setSourcePaths
void setSourcePaths(@NotNull String paths)Sets new source paths to this artifact dependency- Parameters:
paths- paths
-
replaceReferences
void replaceReferences(@NotNull ValueResolver resolver)Replaces references in this artifact dependency using the provided resolver- Parameters:
resolver- replacement map
-
getId
@NotNull String getId()
Returns artifact dependency id- Returns:
- id
- Since:
- 10.0
-
isSimilarTo
boolean isSimilarTo(ArtifactDependency dep)
Checks if another artifact dependency object is equal to this, ignoring differences in ids (if any)- Parameters:
dep- Another artifact dependency- Returns:
- true if artifact dependency objects are equal (ignoring ids)
- Since:
- 10.0
-
-