jetbrains.buildServer.serverSide.artifacts
Interface SArtifactDependency

All Superinterfaces:
ArtifactDependency

public interface SArtifactDependency
extends ArtifactDependency


Method Summary
 SArtifactDependency createCopy()
          Creates copy of this artifact dependency.
 SBuildType getSourceBuildType()
           
 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
getId, getReferences, getRevisionRule, getSourceBuildTypeId, getSourceExternalId, getSourceName, getSourcePaths, isCleanDestinationFolder, isSimilarTo, replaceReferences, setCleanDestinationFolder, setRevisionRule, setSourceBuildTypeId, setSourcePaths
 

Method Detail

createCopy

SArtifactDependency createCopy()
Creates copy of this artifact dependency.

Returns:
copy of this artifact dependency.

getSourceBuildType

@Nullable
SBuildType getSourceBuildType()
                              throws AccessDeniedException
Returns:
build configuration we depend on, can be null if configuration does not exist
Throws:
AccessDeniedException

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