From 26f7b460d93715d1b7345ca47e9a25faaac34420 Mon Sep 17 00:00:00 2001 From: Yulong Wang <7679871+fs-eire@users.noreply.github.com> Date: Wed, 1 Feb 2023 21:08:26 -0800 Subject: [PATCH] upgrade EsrpCodeSigning from v1 to v2 (#14531) ### Description This change upgrade EsrpCodeSigning from v1 to v2 in our build pipeline. --- .../ci_build/github/azure-pipelines/templates/esrp_nuget.yml | 4 ++-- .../github/azure-pipelines/templates/mac-esrp-dll.yml | 2 +- .../github/azure-pipelines/templates/win-esrp-dll.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/ci_build/github/azure-pipelines/templates/esrp_nuget.yml b/tools/ci_build/github/azure-pipelines/templates/esrp_nuget.yml index 0e6c6daab5c8a..b699f2c7f1da3 100644 --- a/tools/ci_build/github/azure-pipelines/templates/esrp_nuget.yml +++ b/tools/ci_build/github/azure-pipelines/templates/esrp_nuget.yml @@ -5,7 +5,7 @@ parameters: steps: - ${{ if eq(parameters['DoEsrp'], 'true') }}: - - task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1 + - task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@2 displayName: ${{ parameters.DisplayName }} inputs: ConnectedServiceName: 'OnnxRuntime CodeSign 20190817' @@ -13,7 +13,7 @@ steps: Pattern: '*.nupkg' signConfigType: inlineSignParams inlineOperation: | - [ + [ { "keyCode": "CP-401405", "operationSetCode": "NuGetSign", diff --git a/tools/ci_build/github/azure-pipelines/templates/mac-esrp-dll.yml b/tools/ci_build/github/azure-pipelines/templates/mac-esrp-dll.yml index 36941231db1c6..008ab59e9163e 100644 --- a/tools/ci_build/github/azure-pipelines/templates/mac-esrp-dll.yml +++ b/tools/ci_build/github/azure-pipelines/templates/mac-esrp-dll.yml @@ -5,7 +5,7 @@ parameters: Pattern: '*.dll' steps: -- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1 +- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@2 displayName: ${{ parameters.DisplayName }} inputs: ConnectedServiceName: 'OnnxRuntime CodeSign 20190817' diff --git a/tools/ci_build/github/azure-pipelines/templates/win-esrp-dll.yml b/tools/ci_build/github/azure-pipelines/templates/win-esrp-dll.yml index a51eb3f6a0b92..ba4c55f2fde4d 100644 --- a/tools/ci_build/github/azure-pipelines/templates/win-esrp-dll.yml +++ b/tools/ci_build/github/azure-pipelines/templates/win-esrp-dll.yml @@ -16,7 +16,7 @@ parameters: default: '*.dll' steps: -- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1 +- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@2 displayName: ${{ parameters.DisplayName }} condition: and(succeeded(), eq('${{ parameters.DoEsrp }}', true)) inputs: