88 - group : msixTools
99 - group : ' Azure Blob variable group'
1010 - group : ' Store Publish Variables'
11+ - name : ob_sdl_credscan_suppressionsFile
12+ value : $(Build.SourcesDirectory)\PowerShell\.config\suppress.json
13+ - name : ob_sdl_tsa_configFile
14+ value : $(Build.SourcesDirectory)\PowerShell\.config\tsaoptions.json
1115 - name : ob_outputDirectory
1216 value : ' $(Build.ArtifactStagingDirectory)/ONEBRANCH_ARTIFACT'
1317
@@ -137,16 +141,19 @@ jobs:
137141 'LTS' = @{
138142 AppStoreName = 'PowerShell-LTS'
139143 ProductId = '$(productId-LTS)'
144+ AppId = '$(AppID-LTS)'
140145 ServiceEndpoint = "StoreAppPublish-Stable"
141146 }
142147 'Stable' = @{
143148 AppStoreName = 'PowerShell'
144149 ProductId = '$(productId-Stable)'
150+ AppId = '$(AppID-Stable)'
145151 ServiceEndpoint = "StoreAppPublish-Stable"
146152 }
147153 'Preview' = @{
148154 AppStoreName = 'PowerShell (Preview)'
149155 ProductId = '$(productId-Preview)'
156+ AppId = '$(AppID-Preview)'
150157 ServiceEndpoint = "StoreAppPublish-Preview"
151158 }
152159 }
@@ -171,16 +178,21 @@ jobs:
171178
172179 [xml]$pdpXml = Get-Content $pdpPath -Raw
173180
174- $appStoreNameElement = $pdpXml.SelectSingleNode("//AppStoreName[@_locID]")
181+ # Create namespace manager for XML with default namespace
182+ $nsManager = New-Object System.Xml.XmlNamespaceManager($pdpXml.NameTable)
183+ $nsManager.AddNamespace("pd", "http://schemas.microsoft.com/appx/2012/ProductDescription")
184+
185+ $appStoreNameElement = $pdpXml.SelectSingleNode("//pd:AppStoreName", $nsManager)
175186 if ($appStoreNameElement) {
176- $appStoreNameElement.InnerText = $config.AppStoreName
177- Write-Verbose -Verbose "Updated AppStoreName to: $($config.AppStoreName)"
187+ $appStoreNameElement.SetAttribute("_locID", $config.AppStoreName)
188+ Write-Verbose -Verbose "Updated AppStoreName _locID to: $($config.AppStoreName)"
178189 } else {
179190 Write-Warning "AppStoreName element not found in PDP file"
180191 }
181192
182193 $pdpXml.Save($pdpPath)
183194 Write-Verbose -Verbose "PDP file updated successfully"
195+ Get-Content -Path $pdpPath | Write-Verbose -Verbose
184196 } else {
185197 Write-Error "PDP file not found: $pdpPath"
186198 exit 1
@@ -198,6 +210,7 @@ jobs:
198210
199211 $sbConfigJson | ConvertTo-Json -Depth 100 | Set-Content $sbConfigPath -Encoding UTF8
200212 Write-Verbose -Verbose "SBConfig file updated successfully"
213+ Get-Content -Path $sbConfigPath | Write-Verbose -Verbose
201214 } else {
202215 Write-Error "SBConfig file not found: $sbConfigPath"
203216 exit 1
@@ -237,6 +250,12 @@ jobs:
237250 pdpPath : ' $(System.DefaultWorkingDirectory)/PowerShell/.pipelines/store/PDP/PDP'
238251 pdpMediaPath : ' $(System.DefaultWorkingDirectory)/PowerShell/.pipelines/store/PDP/PDP-Media'
239252
253+ - pwsh : |
254+ Get-Item -Path "$(System.DefaultWorkingDirectory)/SBLog.txt" -ErrorAction SilentlyContinue |
255+ Copy-Item -Destination "$(ob_outputDirectory)" -Verbose
256+ displayName: Upload Store Failure Log
257+ condition: failed()
258+
240259 - pwsh : |
241260 $submissionPackageDir = "$(System.DefaultWorkingDirectory)/SBOutDir"
242261 $jsonFile = "$submissionPackageDir/PowerShellStorePackage.json"
0 commit comments