Skip to content

Commit

Permalink
update esrp
Browse files Browse the repository at this point in the history
  • Loading branch information
oneonezhang committed Nov 28, 2024
1 parent 777b1a6 commit c7e4a01
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build/pipelines/templates/build-single-architecture.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
downloadDirectory: $(Build.SourcesDirectory)
vstsFeed: WindowsInboxApps
vstsFeedPackage: calculator-internals
vstsPackageVersion: 0.0.109
vstsPackageVersion: 0.0.111

- task: NuGetToolInstaller@1
displayName: Use NuGet 6.x
Expand Down
22 changes: 13 additions & 9 deletions build/pipelines/templates/package-msixbundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
downloadDirectory: $(Build.SourcesDirectory)
vstsFeed: WindowsInboxApps
vstsFeedPackage: calculator-internals
vstsPackageVersion: 0.0.109
vstsPackageVersion: 0.0.111

- task: PowerShell@2
displayName: Generate MsixBundle mapping
Expand Down Expand Up @@ -120,20 +120,24 @@ jobs:
- pwsh: |
$configPath = "$(Build.SourcesDirectory)\Tools\Build\Signing\ESRP-codesign.json"
$config = Get-Content -Raw $configPath | ConvertFrom-Json
$esrpClientId = $config.AppRegistrationClientId
$esrpTenantId = $config.AppRegistrationTenantId
echo ClientId:$esrpClientId, TenantId:$esrpTenantId
$esrpAppRegClientId = $config.AppRegistrationClientId
$esrpAppRegTenantId = $config.AppRegistrationClientId
$esrpClientId = $config.EsrpClientId
echo AppRegistrationClientId:$esrpAppRegClientId, AppRegTenantId:$esrpAppRegTenantId, EsrpClientId:$esrpClientId
echo "##vso[task.setvariable variable=EsrpAppRegClientId]$esrpAppRegClientId"
echo "##vso[task.setvariable variable=EsrpAppRegTenantId]$esrpAppRegTenantId"
echo "##vso[task.setvariable variable=EsrpClientId]$esrpClientId"
echo "##vso[task.setvariable variable=EsrpTenantId]$esrpTenantId"
displayName: Get ESRP config
- task: EsrpCodeSigning@5
displayName: Send msixbundle to code signing service
inputs:
ConnectedServiceName: Essential Experiences Codesign ARM
AppRegistrationClientId: $(EsrpClientId)
AppRegistrationTenantId: $(EsrpTenantId)
AuthAKVName: EE-CodeSignKeyVault
ConnectedServiceName: Essential Experiences Codesign PME
UseMSIAuthentication: true
AppRegistrationClientId: $(EsrpAppRegClientId)
AppRegistrationTenantId: $(EsrpAppRegTenantId)
EsrpClientId: $(EsrpClientId)
AuthAKVName: EE-Apps-CodeSign-KV
AuthCertName: EE-Auth-Cert
AuthSignCertName: EE-Codesign-Cert
FolderPath: $(Build.ArtifactStagingDirectory)\msixBundle
Expand Down
2 changes: 1 addition & 1 deletion build/pipelines/templates/release-vpack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
downloadDirectory: $(Build.SourcesDirectory)
vstsFeed: WindowsInboxApps
vstsFeedPackage: calculator-internals
vstsPackageVersion: 0.0.109
vstsPackageVersion: 0.0.111

- pwsh: |
$configPath = "$(Build.SourcesDirectory)\Tools\Build\Signing\ESRP-auth.json"
Expand Down

0 comments on commit c7e4a01

Please sign in to comment.