Skip to content

Commit

Permalink
[CI] Update ESRP Config for Task v5 (#25976)
Browse files Browse the repository at this point in the history
* Update daily-build.yml for Azure Pipelines

* Update daily-build.yml for Azure Pipelines
  • Loading branch information
YanaXu authored Sep 2, 2024
1 parent ec4f0e8 commit 7f05c19
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions .azure-pipelines/daily-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,15 @@ jobs:
custom: msbuild
arguments: 'build.proj /t:Build /p:Configuration=Release;TurnOnTestCoverage=true;ModifiedModuleBuild=true'

- task: EsrpCodeSigning@4
- task: EsrpCodeSigning@5
displayName: "Sign Dll [Authenticode + Strong Name]"
inputs:
ConnectedServiceName: '$(signServiceConnection)'
ConnectedServiceName: '$(ESRPServiceConnectionName)'
AppRegistrationClientId: '$(ESRPAppClientId)'
AppRegistrationTenantId: '$(ESRPAppTenantId)'
AuthAKVName: '$(ESRPKVName)'
AuthCertName: '$(ESRPAuthCertName)'
AuthSignCertName: '$(ESRPSignCertName)'
FolderPath: 'artifacts'
Pattern: |
Release/**/Microsoft*Azure*PowerShell*.dll
Expand Down Expand Up @@ -128,10 +133,15 @@ jobs:
SessionTimeout: '60'
MaxConcurrency: '50'
MaxRetryAttempts: '5'
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@4
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
displayName: "Sign Scripts [Authenticode]"
inputs:
ConnectedServiceName: '$(signServiceConnection)'
ConnectedServiceName: '$(ESRPServiceConnectionName)'
AppRegistrationClientId: '$(ESRPAppClientId)'
AppRegistrationTenantId: '$(ESRPAppTenantId)'
AuthAKVName: '$(ESRPKVName)'
AuthCertName: '$(ESRPAuthCertName)'
AuthSignCertName: '$(ESRPSignCertName)'
FolderPath: 'artifacts'
Pattern: |
Release/**/*.ps1
Expand Down Expand Up @@ -164,10 +174,15 @@ jobs:
"ToolVersion": "1.0"
}
]
- task: EsrpCodeSigning@4
- task: EsrpCodeSigning@5
displayName: 'Sign 3rd Party [Strong Name]'
inputs:
ConnectedServiceName: '$(signServiceConnection)'
ConnectedServiceName: '$(ESRPServiceConnectionName)'
AppRegistrationClientId: '$(ESRPAppClientId)'
AppRegistrationTenantId: '$(ESRPAppTenantId)'
AuthAKVName: '$(ESRPKVName)'
AuthCertName: '$(ESRPAuthCertName)'
AuthSignCertName: '$(ESRPSignCertName)'
FolderPath: artifacts
Pattern: 'Release/**/FuzzySharp.dll'
UseMinimatch: true
Expand Down

0 comments on commit 7f05c19

Please sign in to comment.