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(java.lang.String id, java.lang.String sourceInternalId, java.lang.String sourceExternalId, java.lang.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 java.lang.String
getSourceBuildTypeId()
Returns internal id of build configuration this artifact belongs tojava.lang.String
getSourceExternalId()
Returns external id of source build configurationjava.lang.String
getSourceName()
Returns full name of the source build configuration.void
setSourceBuildTypeId(java.lang.String sourceBuildTypeInternalId)
Sets new source build configuration idvoid
setSourceExternalId(java.lang.String sourceExternalId)
void
setSourceName(java.lang.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 java.lang.String id, @NotNull java.lang.String sourceInternalId, @NotNull java.lang.String sourceExternalId, @NotNull java.lang.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 java.lang.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 java.lang.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 java.lang.String getSourceName()
Returns full name of the source build configuration.- Returns:
- full name of the source build configuration.
-
setSourceName
public void setSourceName(java.lang.String sourceName)
Set fullname of the source build configuration- Parameters:
sourceName
- the source name.
-
setSourceExternalId
public void setSourceExternalId(@NotNull java.lang.String sourceExternalId)
-
getSourceExternalId
@NotNull public java.lang.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
-
-