TeamCity API - VCS Root commit hashes for build



I have a build that has 10 vcs roots due to dependencies. After a build, i can call the api and get the commit hashes for the repos that have changed in that build. But i need to be able to get the hashes for the other repos that haven't changed too.

Is there any way to do this?

This info is provided in the regular TC UI on the changes tab of any build. The VCS Root table.

I cant see a way to get this into via the api though?

Thanks for any help.

1 comment
Comment actions Permalink

Hello Justin,

The revisions of the VCS roots are included into the build bean (revisions/revision). However, only the revisions of the directly attached VCS roots are included.
There is no special API to get revisions from the snapshot dependencies. This information can be obtained by traversing dependencies.


Please sign in to leave a comment.