Package jetbrains.buildServer.artifacts
Class ArtifactDependencyInfo
- java.lang.Object
-
- jetbrains.buildServer.artifacts.BaseArtifactDependency
-
- jetbrains.buildServer.artifacts.ArtifactDependencyInfo
-
- All Implemented Interfaces:
ArtifactDependency
public class ArtifactDependencyInfo extends BaseArtifactDependency
Represents artifact dependency on an agent. Contains additional information that is required on an agent, for example, source build configuration name.
-
-
Constructor Summary
Constructors Constructor Description ArtifactDependencyInfo(String id, String sourceInternalId, String sourceExternalId, String sourcePaths, RevisionRule revisionRule)
Represents dependency on one or more artifacts of some build.ArtifactDependencyInfo(ArtifactDependency dependency)
Constructs dependency info from the specified ArtifactDependency
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSourceBuildTypeId()
Returns internal id of build configuration this artifact belongs toString
getSourceExternalId()
Returns external id of source build configurationString
getSourceName()
Returns full name of the source build configuration.void
setSourceBuildTypeId(String sourceBuildTypeInternalId)
Sets new source build configuration idvoid
setSourceExternalId(String sourceExternalId)
void
setSourceName(String sourceName)
Set fullname of the source build configuration-
Methods inherited from class jetbrains.buildServer.artifacts.BaseArtifactDependency
equals, getId, getReferences, getRevisionRule, getSourcePaths, hashCode, isCleanDestinationFolder, isSimilarTo, replaceReferences, setCleanDestinationFolder, setRevisionRule, setSourcePaths, toString
-
-
-
-
Constructor Detail
-
ArtifactDependencyInfo
public ArtifactDependencyInfo(@NotNull String id, @NotNull String sourceInternalId, @NotNull String sourceExternalId, @NotNull String sourcePaths, @NotNull RevisionRule revisionRule)
Represents dependency on one or more artifacts of some build.- Parameters:
sourceInternalId
- internal id of build configuration where artifacts residesourceExternalId
- external id of build configuration where artifacts residesourcePaths
- paths to artifacts in source build configurationrevisionRule
- rule by which to select build with artifacts
-
ArtifactDependencyInfo
public ArtifactDependencyInfo(@NotNull ArtifactDependency dependency)
Constructs dependency info from the specified ArtifactDependency- Parameters:
dependency
- dependency
-
-
Method Detail
-
getSourceBuildTypeId
@NotNull public String getSourceBuildTypeId()
Description copied from class:BaseArtifactDependency
Returns internal id of build configuration this artifact belongs to- Specified by:
getSourceBuildTypeId
in interfaceArtifactDependency
- Specified by:
getSourceBuildTypeId
in classBaseArtifactDependency
- Returns:
- internal id of build configuration containing this artifact
-
setSourceBuildTypeId
public void setSourceBuildTypeId(@NotNull String sourceBuildTypeInternalId)
Description copied from class:BaseArtifactDependency
Sets new source build configuration id- Specified by:
setSourceBuildTypeId
in interfaceArtifactDependency
- Specified by:
setSourceBuildTypeId
in classBaseArtifactDependency
- Parameters:
sourceBuildTypeInternalId
- new source build configuration id
-
getSourceName
@NotNull public String getSourceName()
Returns full name of the source build configuration.- Returns:
- full name of the source build configuration.
-
setSourceName
public void setSourceName(String sourceName)
Set fullname of the source build configuration- Parameters:
sourceName
- the source name.
-
setSourceExternalId
public void setSourceExternalId(@NotNull String sourceExternalId)
-
getSourceExternalId
@NotNull public String getSourceExternalId()
Description copied from interface:ArtifactDependency
Returns external id of source build configuration- Specified by:
getSourceExternalId
in interfaceArtifactDependency
- Specified by:
getSourceExternalId
in classBaseArtifactDependency
- Returns:
- build configuration external id
-
-