@@ -54,6 +54,7 @@ extends:
5454 enabled : true
5555 forStages : [build]
5656 featureFlags :
57+ EnableCDPxPAT : false
5758 WindowsHostVersion :
5859 Version : 2022
5960 Network : Netlock
@@ -94,9 +95,10 @@ extends:
9495 targetPath : $(Build.SourcesDirectory)/modules
9596 - pwsh : |
9697 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)
100102 displayName : Build
101103 - task : onebranch.pipeline.signing@1
102104 displayName : Sign 1st-party example PowerShell files
@@ -127,11 +129,6 @@ extends:
127129 inputs :
128130 packageType : sdk
129131 version : 8.x
130- - task : PowerShell@2
131- displayName : Install PSResources
132- inputs :
133- pwsh : true
134- filePath : tools/installPSResources.ps1
135132 - task : DownloadPipelineArtifact@2
136133 displayName : Download PowerShellEditorServices
137134 inputs :
@@ -142,6 +139,11 @@ extends:
142139 branchName : refs/heads/main
143140 artifact : drop_build_main
144141 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
145147 - pwsh : Invoke-Build Test -Configuration $(BuildConfiguration)
146148 displayName : Run tests
147149 - stage : release
0 commit comments