TeamCity - iterating vcs roots with powershell TeamCity - iterating vcs roots with powershell powershell powershell

TeamCity - iterating vcs roots with powershell


Ok, I don't have an actual TeamCity experience, but it looks like you can get a list of roots by issuing a REST command:

Invoke-WebRequest -Uri 'http://teamcity.hps.com/httpAuth/app/rest/vcs-roots' -Method Get

which should return a XML responce with a list of roots:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><vcs-roots count="1">     <vcs-root id="TestProject1_TestProject1perforce"               name="test-project1-perforce"               href="/httpAuth/app/rest/vcs-roots/id:TestProject1_TestProject1perforce"/></vcs-roots>

Is this is what are you looking for?

References: