-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged PR 4474: eng | Add AKV provider signed package
- Loading branch information
1 parent
ae988c3
commit ea7ad53
Showing
16 changed files
with
424 additions
and
120 deletions.
There are no files selected for viewing
64 changes: 64 additions & 0 deletions
64
eng/pipelines/common/templates/jobs/build-signed-akv-package-job.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
################################################################################# | ||
# Licensed to the .NET Foundation under one or more agreements. # | ||
# The .NET Foundation licenses this file to you under the MIT license. # | ||
# See the LICENSE file in the project root for more information. # | ||
################################################################################# | ||
jobs: | ||
- job: build_signed_akv_package | ||
pool: | ||
type: windows # read more about custom job pool types at https://aka.ms/obpipelines/yaml/jobs | ||
|
||
variables: | ||
- template: ../../../libraries/variables.yml@self | ||
|
||
steps: | ||
- script: SET | ||
displayName: 'Print Environment Variables' | ||
|
||
- template: ../steps/build-all-configurations-signed-dlls-step.yml@self | ||
parameters: | ||
product: AKV | ||
nugetPackageRefVersion: $(MDS_PackageRef_Version) | ||
AssemblyFileVersion: $(AKVAssemblyFileVersion) | ||
|
||
- template: ../steps/code-analyze-step.yml@self | ||
parameters: | ||
analyzeType: all | ||
product: AKV | ||
nugetPackageRefVersion: $(MDS_PackageRef_Version) | ||
|
||
- template: ../steps/esrp-code-signing-step.yml@self | ||
parameters: | ||
artifactType: dll | ||
|
||
- template: ../steps/generate-nuget-package-step.yml@self | ||
parameters: | ||
OutputDirectory: $(artifactDirectory) | ||
nuspecPath: ${{variables.akvNuspecPath }} | ||
NugetPackageVersion: ${{variables.AKVNuGetPackageVersion }} | ||
referenceType: package | ||
|
||
- template: ../steps/esrp-code-signing-step.yml@self | ||
parameters: | ||
artifactType: pkg | ||
|
||
- template: ../steps/copy-dlls-for-test-step.yml@self | ||
parameters: | ||
product: AKV | ||
referenceType: package | ||
|
||
# Publish symbols to private server | ||
- template: ../steps/publish-symbols-step.yml@self | ||
parameters: | ||
SymAccount: $(PrivateSymAccount) | ||
referenceType: package | ||
symbolsVersion: ${{variables.AKVNuGetPackageVersion }} | ||
product: AKV | ||
|
||
# Publish symbols to public server | ||
- template: ../steps/publish-symbols-step.yml@self | ||
parameters: | ||
SymAccount: $(PublicSymAccount) | ||
referenceType: package | ||
symbolsVersion: ${{variables.AKVNuGetPackageVersion }} | ||
product: AKV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
108 changes: 108 additions & 0 deletions
108
eng/pipelines/common/templates/steps/copy-dlls-for-test-step.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
################################################################################# | ||
# Licensed to the .NET Foundation under one or more agreements. # | ||
# The .NET Foundation licenses this file to you under the MIT license. # | ||
# See the LICENSE file in the project root for more information. # | ||
################################################################################# | ||
parameters: | ||
- name: Configuration | ||
type: string | ||
default: '$(Configuration)' | ||
|
||
- name: symbolsFolder | ||
type: string | ||
default: symbols | ||
|
||
- name: softwareFolder | ||
type: string | ||
default: software | ||
|
||
- name: referenceType | ||
default: project | ||
values: | ||
- project | ||
- package | ||
|
||
- name: listOfTF | ||
type: object | ||
default: | ||
- net462 | ||
- net6.0 | ||
- net8.0 | ||
- netstandard2.0 | ||
- netstandard2.1 | ||
|
||
- name: product | ||
default: MDS | ||
values: | ||
- MDS | ||
- AKV | ||
- MSS | ||
|
||
steps: | ||
- powershell: | | ||
$software = '${{parameters.softwareFolder}}' | ||
$symbols = '${{parameters.symbolsFolder}}' | ||
md $software | ||
md $software\win | ||
md $symbols | ||
md $symbols\win | ||
displayName: 'Make base directories' | ||
|
||
- ${{ each targetFramework in parameters.listOfTF }}: | ||
- ${{ if eq(parameters.product, 'MDS') }}: | ||
- powershell: | | ||
$software = '${{parameters.softwareFolder}}' | ||
$tf = '${{ targetFramework }}' | ||
md $software\win\$tf | ||
if ($tf.StartsWith('net4')) | ||
{ | ||
Copy-Item "artifacts\${{parameters.referenceType }}\bin\Windows_NT\${{parameters.Configuration }}.AnyCPU\Microsoft.Data.SqlClient\netfx\$tf\Microsoft.Data.SqlClient.dll" "$software\win\$tf" -recurse | ||
} | ||
else | ||
{ | ||
Copy-Item "artifacts\${{parameters.referenceType }}\bin\Windows_NT\${{parameters.Configuration }}.AnyCPU\Microsoft.Data.SqlClient\netcore\$tf\Microsoft.Data.SqlClient.dll" "$software\win\$tf" -recurse | ||
} | ||
$symbols = '${{parameters.symbolsFolder}}' | ||
md $symbols\win\$tf | ||
if ($tf.StartsWith('net4')) | ||
{ | ||
Copy-Item "artifacts\Project\bin\Windows_NT\Release.AnyCPU\Microsoft.Data.SqlClient\netfx\$tf\Microsoft.Data.SqlClient.pdb" "$symbols\win\$tf" -recurse | ||
} | ||
else | ||
{ | ||
Copy-Item "artifacts\Project\bin\Windows_NT\Release.AnyCPU\Microsoft.Data.SqlClient\netcore\$tf\Microsoft.Data.SqlClient.pdb" "$symbols\win\$tf" -recurse | ||
} | ||
Write-Host "Artifacts fetched for testing" | ||
Get-Location | ||
displayName: 'Prepare ${{ targetFramework }} Arifacts for Testing' | ||
- ${{ if eq(parameters.product, 'AKV') }}: | ||
- powershell: | | ||
$software = '${{parameters.softwareFolder}}' | ||
$tf = '${{ targetFramework }}' | ||
md $software\win\$tf | ||
Copy-Item "artifacts\${{parameters.referenceType }}\bin\Windows_NT\${{parameters.Configuration }}.AnyCPU\AzureKeyVaultProvider\$tf\Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider.dll" "$software\win\$tf" -recurse | ||
$symbols = '${{parameters.symbolsFolder}}' | ||
md $symbols\win\$tf | ||
Copy-Item "artifacts\${{parameters.referenceType }}\bin\Windows_NT\${{parameters.Configuration }}.AnyCPU\AzureKeyVaultProvider\$tf\Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider.pdb" "$symbols\win\$tf" -recurse | ||
Write-Host "Artifacts fetched for testing" | ||
Get-Location | ||
displayName: 'Prepare ${{ targetFramework }} Arifacts for Testing' | ||
- powershell: | | ||
$software = '${{parameters.softwareFolder}}' | ||
$symbols = '${{parameters.symbolsFolder}}' | ||
Get-ChildItem -recurse "$software\*.dll" | ||
Get-ChildItem -recurse "$symbols\*.pdb" | ||
displayName: 'List the prepared files' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.