diff --git a/src/teamspsdrive.ps1 b/src/teamspsdrive.ps1 index fb94bb064..89f2adb62 100644 --- a/src/teamspsdrive.ps1 +++ b/src/teamspsdrive.ps1 @@ -640,6 +640,7 @@ class VSTeamBuildDefinition : VSTeamDirectory { [datetime]$CreatedOn = [datetime]::MinValue [VSTeamBuildDefinitionProcess]$Process = $null [VSTeamBuildDefinitionProcessPhaseStep[]]$Steps = $null + [string[]]$Demands = $null VSTeamBuildDefinition ( [object]$obj, @@ -665,6 +666,10 @@ class VSTeamBuildDefinition : VSTeamDirectory { if ($obj.PSObject.Properties.Match('retentionRules').count -gt 0) { $this.RetentionRules = $obj.retentionRules } + + if ($obj.PSObject.Properties.Match('demands').count -gt 0) { + $this.Demands = $obj.demands + } if ($obj.PSObject.Properties.Match('options').count -gt 0) { $this.Options = $obj.options diff --git a/unit/test/sampleFiles/buildDefvsts.json b/unit/test/sampleFiles/buildDefvsts.json index 3c760ca67..c713cf3b9 100644 Binary files a/unit/test/sampleFiles/buildDefvsts.json and b/unit/test/sampleFiles/buildDefvsts.json differ