Skip to content

Commit c9533fe

Browse files
committed
Use correct build of PowerShellEditorServices in OneBranch
Since OneBranch is still using PowerShell 7.3, the PowerShellEditorServices is only partially succeeding as its "assert release configuration" step fails (I've verified it manually) with a continueOnError flag set to true. So the correct build is from a pipeline that's only partially succeeded, and the default setting of the download tasks silently skips those. Now we explicitly allow them and print out the version so this is easier.
1 parent 96ad371 commit c9533fe

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: .pipelines/vscode-powershell-Official.yml

+12
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,19 @@ extends:
9494
project: PowerShellCore
9595
definition: 2905
9696
specificBuildWithTriggering: true
97+
allowPartiallySucceededBuilds: true
98+
buildVersionToDownload: latestFromBranch
9799
branchName: refs/heads/main
98100
artifact: drop_build_main
99101
- task: ExtractFiles@1
100102
displayName: Extract PowerShellEditorServices
101103
inputs:
102104
archiveFilePatterns: $(Pipeline.Workspace)/PowerShellEditorServices.zip
103105
destinationFolder: $(Build.SourcesDirectory)/modules
106+
- pwsh: |
107+
$manifest = Test-ModuleManifest $(Build.SourcesDirectory)/modules/PowerShellEditorServices/PowerShellEditorServices.psd1
108+
Write-Host Using PowerShellEditorServices v$($manifest.Version)
109+
displayName: PowerShellEditorServices version
104110
- pwsh: |
105111
Register-PSRepository -Name CFS -SourceLocation "https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/nuget/v2" -InstallationPolicy Trusted
106112
Install-Module -Repository CFS -Name Microsoft.PowerShell.PSResourceGet
@@ -156,13 +162,19 @@ extends:
156162
project: PowerShellCore
157163
definition: 2905
158164
specificBuildWithTriggering: true
165+
allowPartiallySucceededBuilds: true
166+
buildVersionToDownload: latestFromBranch
159167
branchName: refs/heads/main
160168
artifact: drop_build_main
161169
- task: ExtractFiles@1
162170
displayName: Extract PowerShellEditorServices
163171
inputs:
164172
archiveFilePatterns: $(Pipeline.Workspace)/PowerShellEditorServices.zip
165173
destinationFolder: $(Build.SourcesDirectory)/modules
174+
- pwsh: |
175+
$manifest = Test-ModuleManifest $(Build.SourcesDirectory)/modules/PowerShellEditorServices/PowerShellEditorServices.psd1
176+
Write-Host Using PowerShellEditorServices v$($manifest.Version)
177+
displayName: PowerShellEditorServices version
166178
- pwsh: |
167179
Register-PSRepository -Name CFS -SourceLocation "https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/nuget/v2" -InstallationPolicy Trusted
168180
Install-Module -Repository CFS -Name Microsoft.PowerShell.PSResourceGet

0 commit comments

Comments
 (0)