@@ -54,6 +54,7 @@ extends:
54
54
enabled : true
55
55
forStages : [build]
56
56
featureFlags :
57
+ EnableCDPxPAT : false
57
58
WindowsHostVersion :
58
59
Version : 2022
59
60
Network : Netlock
@@ -94,9 +95,10 @@ extends:
94
95
targetPath : $(Build.SourcesDirectory)/modules
95
96
- pwsh : |
96
97
Register-PSRepository -Name CFS -SourceLocation "https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/nuget/v2" -InstallationPolicy Trusted
97
- Install-Module -Name InvokeBuild -Repository CFS -RequiredVersion 5.11.3 -Verbose
98
- Invoke-Build Build -Configuration $(BuildConfiguration)
99
- # TODO: When the OneBuild container updates to 7.4, update to PSResourceGet
98
+ Install-Module -Repository CFS -Name Microsoft.PowerShell.PSResourceGet
99
+ ./tools/installPSResources.ps1 -PSRepository CFS
100
+ displayName: Install PSResources
101
+ - pwsh : Invoke-Build Build -Configuration $(BuildConfiguration)
100
102
displayName : Build
101
103
- task : onebranch.pipeline.signing@1
102
104
displayName : Sign 1st-party example PowerShell files
@@ -127,11 +129,6 @@ extends:
127
129
inputs :
128
130
packageType : sdk
129
131
version : 8.x
130
- - task : PowerShell@2
131
- displayName : Install PSResources
132
- inputs :
133
- pwsh : true
134
- filePath : tools/installPSResources.ps1
135
132
- task : DownloadPipelineArtifact@2
136
133
displayName : Download PowerShellEditorServices
137
134
inputs :
@@ -142,6 +139,11 @@ extends:
142
139
branchName : refs/heads/main
143
140
artifact : drop_build_main
144
141
targetPath : $(Build.SourcesDirectory)/modules
142
+ - pwsh : |
143
+ Register-PSRepository -Name CFS -SourceLocation "https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/nuget/v2" -InstallationPolicy Trusted
144
+ Install-Module -Repository CFS -Name Microsoft.PowerShell.PSResourceGet
145
+ ./tools/installPSResources.ps1 -PSRepository CFS
146
+ displayName: Install PSResources
145
147
- pwsh : Invoke-Build Test -Configuration $(BuildConfiguration)
146
148
displayName : Run tests
147
149
- stage : release
0 commit comments