Skip to content

Instantly share code, notes, and snippets.

@HowardvanRooijen
Created February 21, 2013 20:54
Show Gist options
  • Save HowardvanRooijen/5008157 to your computer and use it in GitHub Desktop.
Save HowardvanRooijen/5008157 to your computer and use it in GitHub Desktop.
$parameters = @{
ConnectionDetails = @{
ServerUrl = "teamcity.codebetter.com"
Credential = New-Object System.Management.Automation.PSCredential("teamcitysharpuser", (ConvertTo-SecureString "qwerty" -asplaintext -force))
}
BuildConfigId = "bt437"
}
$builds = Get-BuildConfigsByBuildConfigId @parameters
foreach($build in $builds)
{
Write-Host $build.Number
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment