-
Notifications
You must be signed in to change notification settings - Fork 329
Expand file tree
/
Copy pathbuild-signed-package-job.yml
More file actions
68 lines (54 loc) · 2.09 KB
/
build-signed-package-job.yml
File metadata and controls
68 lines (54 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#################################################################################
# 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: symbolsFolder
type: string
default: symbols
- name: softwareFolder
type: string
default: software
- name: publishSymbols
type: boolean
- name: isPreview
type: boolean
jobs:
- job: build_signed_package
displayName: 'Build Signed MDS Package'
pool:
type: windows # read more about custom job pool types at https://aka.ms/obpipelines/yaml/jobs
variables:
- template: ../../../libraries/variables.yml@self
- ${{ if parameters.isPreview }}:
- name: NugetPackageVersion
value: $(PreviewNugetPackageVersion)
steps:
- 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
parameters:
analyzeType: all
- template: ../steps/esrp-code-signing-step.yml@self
parameters:
artifactType: dll
- template: ../steps/generate-nuget-package-step.yml@self
parameters:
OutputDirectory: $(artifactDirectory)
installNuget: false
- template: ../steps/esrp-code-signing-step.yml@self
parameters:
artifactType: pkg
- template: ../steps/copy-dlls-for-test-step.yml@self
parameters:
product: MDS
# Publish symbols to servers
- template: ../steps/publish-symbols-step.yml@self
parameters:
publishSymbols: ${{ parameters['PublishSymbols'] }}
symbolsArtifactName: mds_symbols_$(System.TeamProject)_$(Build.Repository.Name)_$(Build.SourceBranchName)_$(NuGetPackageVersion)_$(System.TimelineId)