Skip to content

Instantly share code, notes, and snippets.

@Dalmirog-zz
Created August 10, 2015 16:18
Show Gist options
  • Save Dalmirog-zz/dd6709695508d19924b7 to your computer and use it in GitHub Desktop.
Save Dalmirog-zz/dd6709695508d19924b7 to your computer and use it in GitHub Desktop.
Get latest deployments and sort them
$projects = Get-OctopusProject
$list = @()
$list += $projects.latestdeployments
#Presentation
#If all "Prod" environments name start with "Prod", they will all show up toghether
$list | Sort-Object EnvironmentName | Format-Table
#If all "Web" Projects name start with "Web", they will all show up toghether
#$list | Sort-Object ProjectName | Format-Table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment