Iterate VCS Roots?

Answered

Is there anyway to iterate the configured VCS Roots for a build configuration?

We have some scripts where we need to iterate over all our repositories and do some common action, now we need to handle the names of the repositories in another way and it would be beneficial if we could iterate the VCS Roots.

1 comment

Hello Mattias,

You can get the list of attached VCS roots in the build script using REST API. For example:

http://teamcity/httpAuth/app/rest/buildTypes/id:<buildConfID>/vcs-root-entries

 

0

Please sign in to leave a comment.