forked from microsoft/msquic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOneBranch.Package.yml
114 lines (106 loc) · 3.42 KB
/
OneBranch.Package.yml
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
trigger: none # https://aka.ms/obpipelines/triggers
resources:
pipelines:
- pipeline: onebranch # Name of the pipeline resource
source: msquic-Official # Name of the pipeline referenced by the pipeline resource
branch: main
repositories:
- repository: templates
type: git
name: OneBranch.Pipelines/GovernedTemplates
ref: refs/heads/main
parameters:
- name: branch
type: string
displayName: Branch to PR to
default: official/rs_onecore_liof1_stack
- name: title
type: string
displayName: PR Title
default: 'Automated: Ingest MsQuic'
# - name: msrc
# type: string
# displayName: MSRC Number
# default: ''
name: 0.$(Date:yyyy).$(Date:MM).$(DayOfMonth).$(Rev:rr).0
variables:
DisableDockerDetector: true
WindowsContainerImage: 'onebranch.azurecr.io/windows/ltsc2022/vse2022:latest'
extends:
template: v2/Microsoft.Official.yml@templates # https://aka.ms/obpipelines/templates
parameters:
platform:
name: 'windows_undocked' # windows undocked
globalSdl: # https://aka.ms/obpipelines/sdl
tsa:
enabled: false # onebranch publish all sdl results to TSA. If TSA is disabled all SDL tools will forced into 'break' build mode.
credscan:
suppressionsFile: $(Build.SourcesDirectory)\.azure\CredScanSuppressions.json
suppression:
suppressionFile: $(Build.SourcesDirectory)\.azure\openssl.gdnsuppress
featureFlags:
WindowsHostVersion: '1ESWindows2022'
stages:
- stage: prepare
pool:
type: windows
displayName: Prepare VPack
dependsOn: []
jobs:
- template: .azure/obtemplates/prepare-vpacks.yml@self
- stage: build_vpack
displayName: Build VPack
dependsOn: [prepare]
jobs:
- job: package
pool:
type: windows
strategy:
matrix:
amd64fre:
platform: amd64fre
amd64chk:
platform: amd64chk
arm64fre:
platform: arm64fre
arm64chk:
platform: arm64chk
armfre:
platform: armfre
armchk:
platform: armchk
chpefre:
platform: chpefre
chpechk:
platform: chpechk
x86fre:
platform: x86fre
x86chk:
platform: x86chk
variables:
runCodesignValidationInjection: false
group: VPackDeploymentKeys
ob_outputDirectory: $(Build.SourcesDirectory)/artifacts/package/$(platform)
ob_artifactSuffix: _$(platform)
ob_sdl_codeSignValidation_excludes: -|**\*.sys;-|**\*.dll;-|**\*.exe
ob_createvpack_enabled: true
ob_createvpack_packagename: msquic.$(platform)
ob_createvpack_owneralias: quicdev
ob_createvpack_description: msquic.$(Build.SourceBranchName)
ob_createvpack_versionAs: string
ob_createvpack_version: 2.4.0-$(Build.BuildId)
steps:
- task: DownloadPipelineArtifact@2
inputs:
artifact: drop_prepare_preparepackage
path: $(Build.SourcesDirectory)/artifacts/package
- stage: push_git
displayName: Push to Git
dependsOn:
- build_vpack
jobs:
- template: .azure/obtemplates/git-submit.yml@self
parameters:
branch: ${{ parameters.branch }}
title: ${{ parameters.title }}
#msrc: ${{ parameters.msrc }}