Skip to content

Get OctopusDeployment

Dalmiro edited this page Jun 7, 2015 · 29 revisions

###Summary Gets information about Octopus deployments

###Parameters

Name DataType Description
EnvironmentName String[] Environment Name
ProjectName String[] Project Name
Before DateTimeOffset Get deployment created before this date
After DateTimeOffset Get deployment created after this date

###Syntax

Get-OctopusDeployment [[-EnvironmentName] <String[]>] [[-ProjectName] <String[]>] [[-Before] <DateTimeOffset>] [[-After] <DateTimeOffset>] [<CommonParameters>]


###Examples EXAMPLE 1

Get all the deployments that were done on the Octopus Instance. You might wanna go grab a coffee after hitting [enter] on this one, its gonna take a while.

PS C:\>Get-OctopusDeployment

EXAMPLE 2

Get all the deployments from all the projects which name starts with "MyProduct.*"

PS C:\>Get-OctopusDeployment -ProjectName "MyProduct.*"

EXAMPLE 3

Get all the deployents that were done to the environments Staging and UAT on the project "MyService"

PS C:\>Get-OctopusDeployment -EnvironmentName "Staging","UAT" -ProjectName "MyService"

EXAMPLE 4

Get all the deployments that were done to the environment "Production" on the projects "MyProduct.webapp" and "MyProduct.service"

PS C:\>Get-OctopusDeployment -project "MyProduct.Webapp","MyProduct.service" -Environment "Production"

EXAMPLE 5

Get all the deployments that were done to the environment "Production" on the projects "MyProduct.Webapp" between 2/20/2015 and 2/21/2015

PS C:\>Get-OctopusDeployment -project "MyProduct.Webapp" -Environment "Production" -After 2/20/2015 -Before 2/21/2015
Clone this wiki locally