jetbrains.buildServer.serverSide.artifacts
Interface SArtifactDependency

All Superinterfaces:
ArtifactDependency, XmlExternalizable

public interface SArtifactDependency
extends ArtifactDependency, XmlExternalizable


Method Summary
 SArtifactDependency createCopy()
          Creates copy of this artifact dependency.
 SBuild resolveForBuild(SBuild targetBuild)
          Searches for a build according to dependency settings for the specified target build
 
Methods inherited from interface jetbrains.buildServer.artifacts.ArtifactDependency
getReferences, getRevisionRule, getSourceBuildTypeId, getSourceName, getSourcePaths, isCleanDestinationFolder, replaceReferences, setCleanDestinationFolder, setRevisionRule, setSourceBuildTypeId, setSourcePaths
 
Methods inherited from interface jetbrains.buildServer.XmlExternalizable
writeTo
 

Method Detail

createCopy

SArtifactDependency createCopy()
Creates copy of this artifact dependency.

Returns:
copy of this artifact dependency.

resolveForBuild

@Nullable
SBuild resolveForBuild(@NotNull
                                SBuild targetBuild)
                       throws BuildTypeNotFoundException,
                              AccessDeniedException
Searches for a build according to dependency settings for the specified target build

Parameters:
targetBuild - the build for which the resolving is performed
Returns:
build or null if build was not found
Throws:
BuildTypeNotFoundException - if source build configuration does not exist
AccessDeniedException - if current authority holder does not have necessary rights for the source build configuration
Since:
5.0