@@ -20,7 +20,7 @@ parameters:
20
20
- release
21
21
22
22
variables :
23
- MSIXVersion : ' 0.1400 '
23
+ MSIXVersion : ' 0.1500 '
24
24
solution : ' **/GitHubExtension.sln'
25
25
appxPackageDir : ' AppxPackages'
26
26
testOutputArtifactDir : ' TestResults'
@@ -59,8 +59,6 @@ extends:
59
59
- task : NuGetToolInstaller@1
60
60
61
61
- task : NuGetAuthenticate@1
62
- inputs :
63
- nuGetServiceConnections : ' DevHomeInternal'
64
62
65
63
- task : PowerShell@2
66
64
displayName : Replace Stubbed Files
@@ -81,9 +79,8 @@ extends:
81
79
restoreSolution : ' $(solution)'
82
80
feedsToUse : ' config'
83
81
nugetConfigPath : ' nuget.config'
84
- externalFeedCredentials : ' DevHomeInternal'
85
82
86
- - task : MicrosoftTDBuild.tdbuild-task.tdbuild-task.TouchdownBuildTask@3
83
+ - task : MicrosoftTDBuild.tdbuild-task.tdbuild-task.TouchdownBuildTask@4
87
84
displayName : Send and Download Localization Files for Artifacts
88
85
condition : and(eq(variables['EnableLocalization'], 'true'), eq(variables['UpdateLocalization'], 'true'))
89
86
inputs :
@@ -98,7 +95,7 @@ extends:
98
95
appendRelativeDir : true
99
96
pseudoSetting : Included
100
97
101
- - task : MicrosoftTDBuild.tdbuild-task.tdbuild-task.TouchdownBuildTask@3
98
+ - task : MicrosoftTDBuild.tdbuild-task.tdbuild-task.TouchdownBuildTask@4
102
99
displayName : Download and Use Localization Files
103
100
condition : eq(variables['EnableLocalization'], 'true')
104
101
retryCountOnTaskFailure : 2
@@ -148,46 +145,45 @@ extends:
148
145
filePath : ' build/scripts/Build.ps1'
149
146
arguments : -Platform "${{ platform }}" -Configuration "${{ configuration }}" -Version $(MSIXVersion) -BuildStep "msix" -AzureBuildingBranch "$(BuildingBranch)" -IsAzurePipelineBuild -ClientId $(GitHubClientId) -ClientSecret $(GitHubClientSecret)
150
147
151
- - task : EsrpCodeSigning@2
152
- inputs :
153
- ConnectedServiceName : ' Xlang Code Signing'
154
- FolderPath : ' $(appxPackageDir)\${{ configuration }}'
155
- Pattern : ' *.msix'
156
- signConfigType : ' inlineSignParams'
157
- inlineOperation : |
158
- [
159
- {
160
- "keycode": "CP-230012",
161
- "operationSetCode": "SigntoolSign",
162
- "parameters": [
163
- {
164
- "parameterName": "OpusName",
165
- "parameterValue": "Microsoft"
166
- },
167
- {
168
- "parameterName": "OpusInfo",
169
- "parameterValue": "http://www.microsoft.com"
170
- },
171
- {
172
- "parameterName": "PageHash",
173
- "parameterValue": "/NPH"
174
- },
175
- {
176
- "parameterName": "FileDigest",
177
- "parameterValue": "/fd sha256"
178
- },
179
- {
180
- "parameterName": "TimeStamp",
181
- "parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
182
- }
183
- ],
184
- "toolName": "signtool.exe",
185
- "toolVersion": "6.2.9304.0"
186
- }
187
- ]
188
- SessionTimeout : ' 60'
189
- MaxConcurrency : ' 50'
190
- MaxRetryAttempts : ' 5'
148
+ - template : ./build/templates/EsrpSigning-Steps.yml@self
149
+ parameters :
150
+ displayName : Submit *.msix to ESRP for code signing
151
+ inputs :
152
+ FolderPath : ' $(appxPackageDir)\${{ configuration }}'
153
+ Pattern : ' *.msix'
154
+ UseMinimatch : true
155
+ signConfigType : inlineSignParams
156
+ inlineOperation : |
157
+ [
158
+ {
159
+ "keycode": "CP-230012",
160
+ "operationSetCode": "SigntoolSign",
161
+ "parameters": [
162
+ {
163
+ "parameterName": "OpusName",
164
+ "parameterValue": "Microsoft"
165
+ },
166
+ {
167
+ "parameterName": "OpusInfo",
168
+ "parameterValue": "http://www.microsoft.com"
169
+ },
170
+ {
171
+ "parameterName": "PageHash",
172
+ "parameterValue": "/NPH"
173
+ },
174
+ {
175
+ "parameterName": "FileDigest",
176
+ "parameterValue": "/fd sha256"
177
+ },
178
+ {
179
+ "parameterName": "TimeStamp",
180
+ "parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
181
+ }
182
+ ],
183
+ "toolName": "signtool.exe",
184
+ "toolVersion": "6.2.9304.0"
185
+ }
186
+ ]
191
187
192
188
# Commented out until our implementation is fixed
193
189
# - task: AzureKeyVault@1
@@ -292,46 +288,45 @@ extends:
292
288
filePath : ' build/scripts/Build.ps1'
293
289
arguments : -Configuration "${{ configuration }}" -Version $(MSIXVersion) -BuildStep "msixbundle" -IsAzurePipelineBuild
294
290
295
- - task : EsrpCodeSigning@2
296
- inputs :
297
- ConnectedServiceName : ' Xlang Code Signing'
298
- FolderPath : ' AppxBundles\${{ configuration }}'
299
- Pattern : ' *.msixbundle'
300
- signConfigType : ' inlineSignParams'
301
- inlineOperation : |
302
- [
303
- {
304
- "keycode": "CP-230012",
305
- "operationSetCode": "SigntoolSign",
306
- "parameters": [
307
- {
308
- "parameterName": "OpusName",
309
- "parameterValue": "Microsoft"
310
- },
311
- {
312
- "parameterName": "OpusInfo",
313
- "parameterValue": "http://www.microsoft.com"
314
- },
315
- {
316
- "parameterName": "PageHash",
317
- "parameterValue": "/NPH"
318
- },
319
- {
320
- "parameterName": "FileDigest",
321
- "parameterValue": "/fd sha256"
322
- },
323
- {
324
- "parameterName": "TimeStamp",
325
- "parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
326
- }
327
- ],
328
- "toolName": "signtool.exe",
329
- "toolVersion": "6.2.9304.0"
330
- }
331
- ]
332
- SessionTimeout : ' 60'
333
- MaxConcurrency : ' 50'
334
- MaxRetryAttempts : ' 5'
291
+ - template : ./build/templates/EsrpSigning-Steps.yml@self
292
+ parameters :
293
+ displayName : Submit *.msixbundle to ESRP for code signing
294
+ inputs :
295
+ FolderPath : ' AppxBundles\${{ configuration }}'
296
+ Pattern : ' *.msixbundle'
297
+ UseMinimatch : true
298
+ signConfigType : inlineSignParams
299
+ inlineOperation : |
300
+ [
301
+ {
302
+ "keycode": "CP-230012",
303
+ "operationSetCode": "SigntoolSign",
304
+ "parameters": [
305
+ {
306
+ "parameterName": "OpusName",
307
+ "parameterValue": "Microsoft"
308
+ },
309
+ {
310
+ "parameterName": "OpusInfo",
311
+ "parameterValue": "http://www.microsoft.com"
312
+ },
313
+ {
314
+ "parameterName": "PageHash",
315
+ "parameterValue": "/NPH"
316
+ },
317
+ {
318
+ "parameterName": "FileDigest",
319
+ "parameterValue": "/fd sha256"
320
+ },
321
+ {
322
+ "parameterName": "TimeStamp",
323
+ "parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
324
+ }
325
+ ],
326
+ "toolName": "signtool.exe",
327
+ "toolVersion": "6.2.9304.0"
328
+ }
329
+ ]
335
330
336
331
templateContext :
337
332
outputs :
@@ -365,7 +360,7 @@ extends:
365
360
artifactName : MsixBundle_Release
366
361
targetPath : StorePublish
367
362
368
- - task : MicrosoftTDBuild.tdbuild-task.tdbuild-task.TouchdownBuildTask@3
363
+ - task : MicrosoftTDBuild.tdbuild-task.tdbuild-task.TouchdownBuildTask@4
369
364
displayName : Download and Use Localization Files
370
365
condition : eq(variables['EnableLocalization'], 'true')
371
366
retryCountOnTaskFailure : 2
@@ -390,11 +385,11 @@ extends:
390
385
$Files | % { Move-Item -Verbose $_.Directory $_.Directory.Parent.Parent -EA:Ignore }
391
386
pwsh : true
392
387
393
- - task : MS-RDX-MRO.windows-store-publish-dev.package-task.store-package@2
388
+ - task : MS-RDX-MRO.windows-store-publish-dev.package-task.store-package@3
394
389
displayName : ' Create Staging StoreBroker Package'
395
390
condition : eq(variables['BuildingBranch'], 'staging')
396
391
inputs :
397
- serviceEndpoint : ' DevHomeGitHubExtensionCanary StoreBroker'
392
+ serviceEndpoint : ' DevHomeGithubExtensionCanary StoreBroker ServiceConnection '
398
393
sbConfigPath : ' $(System.DefaultWorkingDirectory)\build\store\canary\SBConfig.json'
399
394
sourceFolder : ' StorePublish'
400
395
contents : ' *.msixbundle'
@@ -403,11 +398,11 @@ extends:
403
398
outSBName : DevHomeStoreSubmissionPackage
404
399
pdpInclude : ' PDP.xml'
405
400
406
- - task : MS-RDX-MRO.windows-store-publish-dev.publish-task.store-publish@2
401
+ - task : MS-RDX-MRO.windows-store-publish-dev.publish-task.store-publish@3
407
402
displayName : ' Publish Staging StoreBroker Package'
408
403
condition : eq(variables['BuildingBranch'], 'staging')
409
404
inputs :
410
- serviceEndpoint : ' DevHomeGitHubExtensionCanary StoreBroker'
405
+ serviceEndpoint : ' DevHomeGithubExtensionCanary StoreBroker ServiceConnection '
411
406
appId : 9N806ZKPW85R
412
407
inputMethod : JsonAndZip
413
408
jsonPath : ' $(System.DefaultWorkingDirectory)\SBOutDir\DevHomeStoreSubmissionPackage.json'
@@ -418,11 +413,11 @@ extends:
418
413
jsonZipUpdateMetadata : true
419
414
updateImages : true
420
415
421
- - task : MS-RDX-MRO.windows-store-publish-dev.package-task.store-package@2
416
+ - task : MS-RDX-MRO.windows-store-publish-dev.package-task.store-package@3
422
417
displayName : ' Create Release StoreBroker Package'
423
418
condition : eq(variables['BuildingBranch'], 'release')
424
419
inputs :
425
- serviceEndpoint : ' DevHomeGitHubExtension StoreBroker'
420
+ serviceEndpoint : ' DevHomeGithubExtension StoreBroker ServiceConnection '
426
421
sbConfigPath : ' $(System.DefaultWorkingDirectory)\build\store\preview\SBConfig.json'
427
422
sourceFolder : ' StorePublish'
428
423
contents : ' *.msixbundle'
@@ -431,11 +426,11 @@ extends:
431
426
outSBName : DevHomeStoreSubmissionPackage
432
427
pdpInclude : ' PDP.xml'
433
428
434
- - task : MS-RDX-MRO.windows-store-publish-dev.publish-task.store-publish@2
429
+ - task : MS-RDX-MRO.windows-store-publish-dev.publish-task.store-publish@3
435
430
displayName : ' Publish Release StoreBroker Package'
436
431
condition : eq(variables['BuildingBranch'], 'release')
437
432
inputs :
438
- serviceEndpoint : ' DevHomeGitHubExtension StoreBroker'
433
+ serviceEndpoint : ' DevHomeGithubExtension StoreBroker ServiceConnection '
439
434
appId : 9NZCC27PR6N6
440
435
inputMethod : JsonAndZip
441
436
jsonPath : ' $(System.DefaultWorkingDirectory)\SBOutDir\DevHomeStoreSubmissionPackage.json'
0 commit comments