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