2222 - name : PREVIEW
2323 value : $[ stageDependencies.setReleaseTagAndChangelog.setTagAndChangelog.outputs['ChannelSelection.IsPreview'] ]
2424 - template : ./variable/release-shared.yml@self
25+ parameters :
26+ RELEASETAG : $[ stageDependencies.setReleaseTagAndChangelog.setTagAndChangelog.outputs['OutputReleaseTag.releaseTag'] ]
2527 steps :
2628 - task : PowerShell@2
2729 inputs :
@@ -41,14 +43,14 @@ jobs:
4143 }
4244 $middleURL = ''
4345 $tagString = "$(ReleaseTag)"
44- if ($tagString -match '-') {
46+ if ($tagString -match '-preview ') {
4547 $middleURL = "preview"
4648 }
4749 elseif ($tagString -match '(\d+\.\d+)') {
4850 $middleURL = $matches[1]
4951 }
5052
51- $endURL = $tagString -replace '[v\.]', ''
53+ $endURL = $tagString -replace '^v|\.', ''
5254 $message = "Changelog: https://github.com/PowerShell/PowerShell/blob/master/CHANGELOG/$middleURL.md#$endURL"
5355 Write-Verbose -Verbose "Release Notes for the Store:"
5456 Write-Verbose -Verbose "$message"
8890 displayName : ' Publish LTS StoreBroker Package'
8991 condition : and(ne('${{ parameters.skipMSIXPublish }}', 'true'), eq(variables['LTS'], 'true'))
9092 inputs :
91- serviceEndpoint : ' StoreAppPublish-Stable '
93+ serviceEndpoint : ' StoreAppPublish-Private '
9294 appId : ' $(AppID-LTS)'
9395 inputMethod : JsonAndZip
9496 jsonPath : ' $(Pipeline.Workspace)\SBOutDir\PowerShellStorePackage.json'
@@ -101,7 +103,7 @@ jobs:
101103 displayName : ' Publish Stable StoreBroker Package'
102104 condition : and(ne('${{ parameters.skipMSIXPublish }}', 'true'), eq(variables['STABLE'], 'true'))
103105 inputs :
104- serviceEndpoint : ' StoreAppPublish-Stable '
106+ serviceEndpoint : ' StoreAppPublish-Private '
105107 appId : ' $(AppID-Stable)'
106108 inputMethod : JsonAndZip
107109 jsonPath : ' $(Pipeline.Workspace)\SBOutDir\PowerShellStorePackage.json'
@@ -114,11 +116,16 @@ jobs:
114116 displayName : ' Publish Preview StoreBroker Package'
115117 condition : and(ne('${{ parameters.skipMSIXPublish }}', 'true'), eq(variables['PREVIEW'], 'true'))
116118 inputs :
117- serviceEndpoint : ' StoreAppPublish-Preview '
119+ serviceEndpoint : ' StoreAppPublish-Private '
118120 appId : ' $(AppID-Preview)'
119121 inputMethod : JsonAndZip
120122 jsonPath : ' $(Pipeline.Workspace)\SBOutDir\PowerShellStorePackage.json'
121123 zipPath : ' $(Pipeline.Workspace)\SBOutDir\PowerShellStorePackage.zip'
122124 numberOfPackagesToKeep : 2
123125 jsonZipUpdateMetadata : true
124126 targetPublishMode : ' Immediate'
127+
128+ - pwsh : |
129+ Get-Content -Path "$(System.DefaultWorkingDirectory)/SBLog.txt" -ErrorAction SilentlyContinue
130+ displayName: Upload Store Failure Log
131+ condition: failed()
0 commit comments