[5.2] Eng | Add CDP_BUILD_TYPE to package validator (#2857)

This commit is contained in:
dauinsight 2024-09-16 16:10:53 -07:00 коммит произвёл GitHub
Родитель 985e96d200
Коммит 1b8ea5a5e9
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 11 добавлений и 2 удалений

Просмотреть файл

@ -28,6 +28,10 @@ jobs:
- script: SET
displayName: 'Print Environment Variables'
- powershell: |
Write-Host "##vso[task.setvariable variable=CDP_BUILD_TYPE_COPY;isOutput=true]$($env:CDP_BUILD_TYPE)"
name: GetBuildType
- template: ../steps/build-all-configurations-signed-dlls-step.yml@self
- template: ../steps/code-analyze-step.yml@self

Просмотреть файл

@ -54,12 +54,15 @@ jobs:
- name: pathToDownloadedNuget # path to the downloaded nuget files
value: $(Pipeline.Workspace)\${{parameters.packageFolderName }}
- name: BuildType
value: $[ stageDependencies.buildMDS.build_signed_package.outputs['GetBuildType.CDP_BUILD_TYPE_COPY'] ]
steps:
- script: SET
displayName: 'Print Environment Variables'
- task: NuGetToolInstaller@1
displayName: 'Use NuGet '
displayName: 'Use NuGet'
- powershell: |
#Sets Variables for AssemblyFileVersion, AssemblyVersion and NugetPackageVersion
@ -111,7 +114,9 @@ jobs:
displayName: 'Verify nuget signature'
- powershell: |
if($env:CDP_BUILD_TYPE -eq 'Official')
$buildType = [string]"$(BuildType)"
if($buildType -eq 'Official')
{
# Recursively find all .dll files in TempFolder (installed nuget folder)
# Microsoft.Data.SqlClient.dll and Microsoft.Data.SqlClient.resources.dll (in localized folders) should have strong name