Skip to content

Commit b924784

Browse files
authored
Merge pull request #320 from microsoft/chore/esrp-sign
ci: upgrades esrp sign tasks
2 parents 7b1d978 + 03a7823 commit b924784

File tree

1 file changed

+30
-6
lines changed

1 file changed

+30
-6
lines changed

.azure-pipelines/ci-build.yml

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,15 @@ extends:
8686
projects: '$(Build.SourcesDirectory)\Microsoft.Kiota.sln'
8787
arguments: '--configuration $(BuildConfiguration) --no-build --framework net8.0'
8888

89-
- task: EsrpCodeSigning@3
89+
- task: EsrpCodeSigning@5
9090
displayName: 'ESRP DLL Strong Name'
9191
inputs:
92-
ConnectedServiceName: 'microsoftgraph ESRP CodeSign DLL and NuGet (AKV)'
92+
ConnectedServiceName: 'Federated DevX ESRP Managed Identity Connection'
93+
AppRegistrationClientId: '65035b7f-7357-4f29-bf25-c5ee5c3949f8'
94+
AppRegistrationTenantId: 'cdc5aeea-15c5-4db6-b079-fcadd2505dc2'
95+
AuthAKVName: 'akv-prod-eastus'
96+
AuthCertName: 'ReferenceLibraryPrivateCert'
97+
AuthSignCertName: 'ReferencePackagePublisherCertificate'
9398
FolderPath: src # This path should already omit test dlls as they exist in the `tests` folder
9499
Pattern: '**\*Microsoft.Kiota.*.dll'
95100
signConfigType: inlineSignParams
@@ -112,11 +117,19 @@ extends:
112117
}
113118
]
114119
SessionTimeout: 20
120+
MaxConcurrency: 50
121+
MaxRetryAttempts: 5
122+
PendingAnalysisWaitTimeoutMinutes: 5
115123

116-
- task: EsrpCodeSigning@3
124+
- task: EsrpCodeSigning@5
117125
displayName: 'ESRP DLL CodeSigning'
118126
inputs:
119-
ConnectedServiceName: 'microsoftgraph ESRP CodeSign DLL and NuGet (AKV)'
127+
ConnectedServiceName: 'Federated DevX ESRP Managed Identity Connection'
128+
AppRegistrationClientId: '65035b7f-7357-4f29-bf25-c5ee5c3949f8'
129+
AppRegistrationTenantId: 'cdc5aeea-15c5-4db6-b079-fcadd2505dc2'
130+
AuthAKVName: 'akv-prod-eastus'
131+
AuthCertName: 'ReferenceLibraryPrivateCert'
132+
AuthSignCertName: 'ReferencePackagePublisherCertificate'
120133
FolderPath: src # This path should already omit test dlls as they exist in the `tests` folder
121134
signConfigType: inlineSignParams
122135
UseMinimatch: true
@@ -160,17 +173,25 @@ extends:
160173
}
161174
]
162175
SessionTimeout: 20
176+
MaxConcurrency: 50
177+
MaxRetryAttempts: 5
178+
PendingAnalysisWaitTimeoutMinutes: 5
163179

164180
# arguments are not parsed in DotNetCoreCLI@2 task for `pack` command, that's why we have a custom pack command here
165181
- pwsh: dotnet pack /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg --no-build --output $env:BUILD_ARTIFACTSTAGINGDIRECTORY --configuration $env:BUILD_CONFIGURATION
166182
env:
167183
BUILD_CONFIGURATION: $(BuildConfiguration)
168184
displayName: Dotnet pack
169185

170-
- task: EsrpCodeSigning@3
186+
- task: EsrpCodeSigning@5
171187
displayName: 'ESRP CodeSigning Nuget Packages'
172188
inputs:
173-
ConnectedServiceName: 'microsoftgraph ESRP CodeSign DLL and NuGet (AKV)'
189+
ConnectedServiceName: 'Federated DevX ESRP Managed Identity Connection'
190+
AppRegistrationClientId: '65035b7f-7357-4f29-bf25-c5ee5c3949f8'
191+
AppRegistrationTenantId: 'cdc5aeea-15c5-4db6-b079-fcadd2505dc2'
192+
AuthAKVName: 'akv-prod-eastus'
193+
AuthCertName: 'ReferenceLibraryPrivateCert'
194+
AuthSignCertName: 'ReferencePackagePublisherCertificate'
174195
FolderPath: '$(Build.ArtifactStagingDirectory)'
175196
Pattern: '*.nupkg'
176197
signConfigType: inlineSignParams
@@ -193,6 +214,9 @@ extends:
193214
}
194215
]
195216
SessionTimeout: 20
217+
MaxConcurrency: 50
218+
MaxRetryAttempts: 5
219+
PendingAnalysisWaitTimeoutMinutes: 5
196220

197221
- task: CopyFiles@2
198222
displayName: 'Copy release scripts to artifact staging directory'

0 commit comments

Comments
 (0)