|
| 1 | +################################################################################# |
| 2 | +# Licensed to the .NET Foundation under one or more agreements. # |
| 3 | +# The .NET Foundation licenses this file to you under the MIT license. # |
| 4 | +# See the LICENSE file in the project root for more information. # |
| 5 | +################################################################################# |
| 6 | +parameters: |
| 7 | + - name: symbolsFolder |
| 8 | + type: string |
| 9 | + default: symbols |
| 10 | + - name: softwareFolder |
| 11 | + type: string |
| 12 | + default: software |
| 13 | + |
| 14 | +jobs: |
| 15 | +- job: build_signed_package |
| 16 | + pool: |
| 17 | + type: windows # read more about custom job pool types at https://aka.ms/obpipelines/yaml/jobs |
| 18 | + |
| 19 | + variables: |
| 20 | + - template: ../../../libraries/variables.yml@self |
| 21 | + |
| 22 | + steps: |
| 23 | + - script: SET |
| 24 | + displayName: 'Print Environment Variables' |
| 25 | + - template: ../steps/build-all-configurations-signed-dlls-step.yml@self |
| 26 | + - template: ../steps/code-analyze-step.yml@self |
| 27 | + parameters: |
| 28 | + analyzeType: all |
| 29 | + - template: ../steps/esrp-code-signing-step.yml@self |
| 30 | + parameters: |
| 31 | + artifactType: dll |
| 32 | + - template: ../steps/generate-nuget-package-step.yml@self |
| 33 | + parameters: |
| 34 | + OutputDirectory: $(artifactDirectory) |
| 35 | + - template: ../steps/esrp-code-signing-step.yml@self |
| 36 | + parameters: |
| 37 | + artifactType: pkg |
| 38 | + - powershell: | |
| 39 | + $software = '${{parameters.softwareFolder}}' |
| 40 | + md $software |
| 41 | + md $software\win |
| 42 | + md $software\win\net46 |
| 43 | + md $software\win\net6.0 |
| 44 | + md $software\win\net8.0 |
| 45 | + md $software\win\netstandard2.0 |
| 46 | + md $software\win\netstandard2.1 |
| 47 | + |
| 48 | + Copy-Item "artifacts\Project\bin\Windows_NT\Release.AnyCPU\Microsoft.Data.SqlClient\netfx\Microsoft.Data.SqlClient.dll" "$software\win\net46" -recurse |
| 49 | + Copy-Item "artifacts\Project\bin\Windows_NT\Release.AnyCPU\Microsoft.Data.SqlClient\netcore\net6.0\Microsoft.Data.SqlClient.dll" "$software\win\net6.0" -recurse |
| 50 | + Copy-Item "artifacts\Project\bin\Windows_NT\Release.AnyCPU\Microsoft.Data.SqlClient\netcore\net8.0\Microsoft.Data.SqlClient.dll" "$software\win\net8.0" -recurse |
| 51 | + Copy-Item "artifacts\Project\bin\Windows_NT\Release.AnyCPU\Microsoft.Data.SqlClient\netcore\netstandard2.0\Microsoft.Data.SqlClient.dll" "$software\win\netstandard2.0" -recurse |
| 52 | + Copy-Item "artifacts\Project\bin\Windows_NT\Release.AnyCPU\Microsoft.Data.SqlClient\netcore\netstandard2.1\Microsoft.Data.SqlClient.dll" "$software\win\netstandard2.1" -recurse |
| 53 | + |
| 54 | + $symbols = '${{parameters.symbolsFolder}}' |
| 55 | + md $symbols |
| 56 | + md $symbols\win |
| 57 | + md $symbols\win\net46 |
| 58 | + md $symbols\win\net6.0 |
| 59 | + md $symbols\win\net8.0 |
| 60 | + md $symbols\win\netstandard2.0 |
| 61 | + md $symbols\win\netstandard2.1 |
| 62 | + |
| 63 | + Copy-Item "artifacts\Project\bin\Windows_NT\Release.AnyCPU\Microsoft.Data.SqlClient\netfx\Microsoft.Data.SqlClient.pdb" "$symbols\win\net46" -recurse |
| 64 | + Copy-Item "artifacts\Project\bin\Windows_NT\Release.AnyCPU\Microsoft.Data.SqlClient\netcore\net6.0\Microsoft.Data.SqlClient.pdb" "$symbols\win\net6.0" -recurse |
| 65 | + Copy-Item "artifacts\Project\bin\Windows_NT\Release.AnyCPU\Microsoft.Data.SqlClient\netcore\net8.0\Microsoft.Data.SqlClient.pdb" "$symbols\win\net8.0" -recurse |
| 66 | + Copy-Item "artifacts\Project\bin\Windows_NT\Release.AnyCPU\Microsoft.Data.SqlClient\netcore\netstandard2.0\Microsoft.Data.SqlClient.pdb" "$symbols\win\netstandard2.0" -recurse |
| 67 | + Copy-Item "artifacts\Project\bin\Windows_NT\Release.AnyCPU\Microsoft.Data.SqlClient\netcore\netstandard2.1\Microsoft.Data.SqlClient.pdb" "$symbols\win\netstandard2.1" -recurse |
| 68 | + |
| 69 | + Write-Host "Artifacts fetched for testing" |
| 70 | + dir |
| 71 | + Get-Location |
| 72 | + displayName: 'Prepare Arifacts for Testing' |
| 73 | + # Publish symbols to private server |
| 74 | + - template: ../steps/publish-symbols-step.yml@self |
| 75 | + parameters: |
| 76 | + SymAccount: $(PrivateSymAccount) |
| 77 | + # Publish symbols to public server |
| 78 | + - template: ../steps/publish-symbols-step.yml@self |
| 79 | + parameters: |
| 80 | + SymAccount: $(PublicSymAccount) |
0 commit comments