TeamCity
 
You are viewing the documentation for an earlier version of TeamCity.

Snapshot Dependencies

Last modified: 20 April 2023

Setting the dependency by other build's sources you can ensure that a build will start only after the one it depends from is run and finished. See details at Snapshot Dependency.

To add a snapshot dependency, on the Dependencies page of the build configuration settings, click the Add new snapshot dependency and specify the following options:

Suitable Builds



A "suitable" build in terms of snapshot dependencies is the one which uses the same sources snapshot. If the build configurations have the same VCS settings, this basically means the one with the same sources revisions. If VCS settings are different (VCS roots or checkout rules), then "same sources snapshot" revisions means revisions corresponding one to each other in terms of being current at some moment in time.

Please note that custom builds (those run with custom parameters) or personal builds are not considered "suitable" even when they use the same sources revision.

See also a note on certain VCS settings which might result in builds being not suitable, even though they have no changes.