Skip to content

Instantly share code, notes, and snippets.

@jstangroome
Created February 17, 2011 08:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jstangroome/831310 to your computer and use it in GitHub Desktop.
Save jstangroome/831310 to your computer and use it in GitHub Desktop.
Change the Quality of a build from a deployment in TFS Deployer 2010
$CollectionUrl = 'http://mytfs:8080/tfs/mycollection'
'.Client', '.Build.Client' | % {
Add-Type -AssemblyName "Microsoft.TeamFoundation$_, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
}
$Collection = New-Object -TypeName Microsoft.TeamFoundation.Client.TfsTeamProjectCollection -ArgumentList $CollectionUrl
$BuildServer = $Collection.GetService([Microsoft.TeamFoundation.Build.Client.IBuildServer])
$LiveBuildDetail = $BuildServer.GetBuild($TfsDeployerBuildDetail.Uri)
$LiveBuildDetail.Quality = 'Ready for QA'
$LiveBuildDetail.Save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment