Update release pipeline to use newer StoreBroker tasks (#727)

Updating the release pipeline to use the newer StoreBroker v2 tasks
for automated deployment to the Store.

Must rev the version of the internals package in order to get the
latest version of the PDP files and config file.
This commit is contained in:
Howard Wolosky 2019-10-22 15:41:26 -07:00 committed by GitHub
parent d5046e1ffc
commit 357bb34c21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 61 additions and 43 deletions

View File

@ -21,7 +21,7 @@ jobs:
steps: steps:
- checkout: self - checkout: self
clean: true clean: true
- task: UniversalPackages@0 - task: UniversalPackages@0
displayName: Download internals package displayName: Download internals package
inputs: inputs:
@ -29,7 +29,7 @@ jobs:
downloadDirectory: $(Build.SourcesDirectory) downloadDirectory: $(Build.SourcesDirectory)
vstsFeed: WindowsApps vstsFeed: WindowsApps
vstsFeedPackage: calculator-internals vstsFeedPackage: calculator-internals
vstsPackageVersion: 0.0.19 vstsPackageVersion: 0.0.22
- template: ./build-single-architecture.yaml - template: ./build-single-architecture.yaml
parameters: parameters:
@ -64,4 +64,4 @@ jobs:
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0 - task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
displayName: Detect open source components displayName: Detect open source components
inputs: inputs:
sourceScanPath: $(Agent.BuildDirectory) sourceScanPath: $(Agent.BuildDirectory)

View File

@ -19,6 +19,12 @@ jobs:
clean: outputs clean: outputs
variables: variables:
skipComponentGovernanceDetection: true skipComponentGovernanceDetection: true
SBMediaRootPath: '$(TEMP)\SBMedia'
SBPackagePath: '$(Build.ArtifactStagingDirectory)\storeBrokerPayload'
SBLogPath: '$(SBPackagePath)\StoreBroker.log'
FlightId: '161f0975-cb5f-475b-8ef6-26383c37621f'
AppId: '9WZDNCRFHVN5'
ProductId: '00009007199266248474'
steps: steps:
- checkout: self - checkout: self
clean: true clean: true
@ -91,61 +97,73 @@ jobs:
downloadDirectory: $(Build.SourcesDirectory) downloadDirectory: $(Build.SourcesDirectory)
vstsFeed: WindowsApps vstsFeed: WindowsApps
vstsFeedPackage: calculator-internals vstsFeedPackage: calculator-internals
vstsPackageVersion: 0.0.19 vstsPackageVersion: 0.0.22
- task: PkgESStoreBrokerPackage@10 - powershell: |
displayName: Create StoreBroker Packages # Just modify this line to indicate where your en-us PDP file is. Leave the other lines alone.
env: $enUSPdpFilePath = "$(Build.SourcesDirectory)\PDP\en-US\PDP.xml"
XES_SERIALPOSTBUILDREADY: True
# This is going to save the release value from the PDP file to $(SBMediaReleaseVersion)
# which you can then refer to in the UniversalPackages task.
$release = ([xml](Get-Content $enUSPdpFilePath)).ProductDescription.Release.Trim()
Write-Host "##vso[task.setvariable variable=SBMediaReleaseVersion;]$release"
displayName: Determine the PDP Media release version from the en-us PDP file
- task: UniversalPackages@0
displayName: Download PDP media (screenshots, trailers) universal package
inputs: inputs:
addToFlight: false command: download
configPath: tools/Build/StoreBroker/SBCalculatorConfig.json downloadDirectory: $(SBMediaRootPath)/$(SBMediaReleaseVersion)
PDPRootPath: $(Build.SourcesDirectory)\PDP vstsFeed: WindowsInboxApps
imagesRootPath: $(Build.SourcesDirectory)\PDPMediaRoot vstsFeedPackage: calculator-pdp-media
appxPath: $(Build.ArtifactStagingDirectory)\appxBundleSigned\Microsoft.WindowsCalculator_8wekyb3d8bbwe.appxbundle vstsPackageVersion: $(SBMediaReleaseVersion)
useArtifactServiceForMedia: true
outPath: $(Build.ArtifactStagingDirectory)\StoreBrokerPayload - task: MS-RDX-MRO.windows-store-publish-dev.package-task.store-package@2
paToken: $(System.AccessToken) displayName: Create StoreBroker Payload
logRootPath: $(Build.ArtifactStagingDirectory)/StoreBrokerLogs inputs:
serviceEndpoint: StoreBrokerProxy
sbConfigPath: Tools/Build/StoreBroker/SBCalculatorConfig.json
sourceFolder: $(Build.ArtifactStagingDirectory)/appxBundleSigned
contents: Microsoft.WindowsCalculator_8wekyb3d8bbwe.appxbundle
pdpPath: '$(Build.SourcesDirectory)\PDP'
pdpInclude: PDP.xml
pdpMediaPath: '$(SBMediaRootPath)'
outSBPackagePath: '$(SBPackagePath)'
outSBName: SBCalculator
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
displayName: Publish StoreBrokerPayload artifact displayName: Publish StoreBroker Payload artifact
inputs: inputs:
pathtoPublish: '$(SBPackagePath)'
artifactName: storeBrokerPayload artifactName: storeBrokerPayload
pathToPublish: $(Build.ArtifactStagingDirectory)/StoreBrokerPayload
- task: PkgESStoreBrokerFlight@10 - task: MS-RDX-MRO.windows-store-publish-dev.flight-task.store-flight@2
name: StoreBrokerFlight displayName: 'Flight StoreBroker Payload to team ring '
displayName: Flight package with StoreBroker
env:
XES_SERIALPOSTBUILDREADY: True
inputs: inputs:
packageToFlight: Custom serviceEndpoint: StoreBrokerProxy
appId: 9WZDNCRFHVN5 appId: '$(AppId)'
flightId: 161f0975-cb5f-475b-8ef6-26383c37621f flightId: '$(FlightId)'
submissionDataPath: $(Build.ArtifactStagingDirectory)/StoreBrokerPayload/SBCalculator.json inputMethod: JsonAndZip
packagePath: $(Build.ArtifactStagingDirectory)/StoreBrokerPayload/SBCalculator.zip jsonPath: '$(SBPackagePath)\SBCalculator.json'
updatePackageAction: AddPackages zipPath: '$(SBPackagePath)\SBCalculator.zip'
logRootPath: $(Build.ArtifactStagingDirectory)/StoreBrokerLogs force: true
skipPolling: true
- task: PublishBuildArtifacts@1 targetPublishMode: Immediate
displayName: Publish StoreBrokerLogs artifact logPath: '$(SBLogPath)'
inputs:
artifactName: storeBrokerLogs
pathToPublish: $(Build.ArtifactStagingDirectory)/StoreBrokerLogs
- task: PkgESStoreBrokerAeroUpload@10 - task: PkgESStoreBrokerAeroUpload@10
displayName: Upload to Aero flighting dashboard displayName: Upload to Aero flighting dashboard
env: env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken) SYSTEM_ACCESSTOKEN: $(System.AccessToken)
inputs: inputs:
productId: 00009007199266248474 ProductId: '$(ProductId)'
flightId: 161f0975-cb5f-475b-8ef6-26383c37621f FlightId: '$(FlightId)'
submissionId: $(StoreBrokerFlight.WS_SubmissionId) SubmissionId: '$(null.WS_SubmissionId)'
submissionDataPath: $(Build.ArtifactStagingDirectory)/StoreBrokerPayload/SBCalculator.json SubmissionDataPath: '$(SBPackagePath)\SBCalculator.json'
packagePath: $(Build.ArtifactStagingDirectory)/StoreBrokerPayload/SBCalculator.zip PackagePath: '$(SBPackagePath)\SBCalculator.zip'
AeroEnvironment: Production
- task: PkgESLateTasks@10 - task: PkgESLateTasks@10
displayName: Run PackageES LateTasks displayName: Run PackageES LateTasks
env: env:
XES_DISABLEPROV: true XES_DISABLEPROV: true