Various PowerShell scripts


<Copying this post almost directly from James, but the scripts are my own. See his blog for more TFS scripts.> 


This page just gives me a place to keep a most-recent-copy of my various PowerShell scripts, mostly related to Team Build.  This makes it easier for people that want to use them than having to copy-paste from lots of different blog posts.


Contents:



  • Get-BuildServer.ps1 – given a TFS server name, it returns an instance of IBuildServer (Orcas only)

  • Get-BuildsForChangeset.ps1 – given a TFS server name, team project, and changeset number, it returns a list of all builds that included that changeset (Orcas only)

  • (more to come)

History:



  • 2007-03-29: initial posting

psscripts.zip

Comments (2)

  1. In the Orcas release we allow you to Query for builds (and build definitions) through the object model.

  2. I just read Aaron’s post "Team Build Object Model – Queueing a Build" and I just had convert his code