60 lines
2.0 KiB
YAML
60 lines
2.0 KiB
YAML
|
parameters:
|
||
|
enableSourceLinkValidation: true
|
||
|
enableSigningValidation: true
|
||
|
enableSymbolValidation: true
|
||
|
|
||
|
stages:
|
||
|
- stage: validate
|
||
|
dependsOn: build
|
||
|
displayName: Validate
|
||
|
jobs:
|
||
|
- ${{ if eq(parameters.enableSigningValidation, 'true') }}:
|
||
|
- job:
|
||
|
displayName: Signing Validation
|
||
|
pool:
|
||
|
vmImage: 'windows-2019'
|
||
|
steps:
|
||
|
- task: DownloadBuildArtifacts@0
|
||
|
displayName: Download Package Artifacts
|
||
|
inputs:
|
||
|
buildType: current
|
||
|
artifactName: PackageArtifacts
|
||
|
|
||
|
- task: PowerShell@2
|
||
|
displayName: Validate
|
||
|
inputs:
|
||
|
filePath: eng\common\sdk-task.ps1
|
||
|
arguments: -task SigningValidation -restore -msbuildEngine dotnet
|
||
|
/p:PackageBasePath='$(Build.ArtifactStagingDirectory)/PackageArtifacts'
|
||
|
/p:Configuration=Release
|
||
|
|
||
|
- ${{ if eq(parameters.enableSourceLinkValidation, 'true') }}:
|
||
|
- job:
|
||
|
displayName: SourceLink Validation
|
||
|
variables:
|
||
|
- template: common-variables.yml
|
||
|
pool:
|
||
|
vmImage: 'windows-2019'
|
||
|
steps:
|
||
|
- task: DownloadBuildArtifacts@0
|
||
|
displayName: Download Blob Artifacts
|
||
|
inputs:
|
||
|
buildType: current
|
||
|
artifactName: BlobArtifacts
|
||
|
|
||
|
- task: PowerShell@2
|
||
|
displayName: Validate
|
||
|
inputs:
|
||
|
filePath: $(Build.SourcesDirectory)/eng/common/post-build/sourcelink-validation.ps1
|
||
|
arguments: -InputPath $(Build.ArtifactStagingDirectory)/BlobArtifacts/
|
||
|
-ExtractPath $(Agent.BuildDirectory)/Extract/
|
||
|
-GHRepoName $(Build.Repository.Name)
|
||
|
-GHCommit $(Build.SourceVersion)
|
||
|
-SourcelinkCliVersion $(SourceLinkCLIVersion)
|
||
|
|
||
|
- template: \eng\common\templates\post-build\channels\public-dev-release.yml
|
||
|
parameters:
|
||
|
enableSymbolValidation: ${{ parameters.enableSymbolValidation }}
|
||
|
|
||
|
- template: \eng\common\templates\post-build\channels\public-validation-release.yml
|