-
Notifications
You must be signed in to change notification settings - Fork 5
/
vsts-ci.yml
62 lines (54 loc) · 1.52 KB
/
vsts-ci.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
# Copyright (C) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license. See LICENSE.txt in the project root for license information.
variables:
BuildConfiguration: Release
SignType: real
TeamName: vssetup
trigger:
batch: true
branches:
include:
- main
paths:
exclude:
- README.md
pr: none
resources:
repositories:
- repository: MicroBuildTemplate
type: git
name: 1ESPipelineTemplates/MicroBuildTemplate
ref: refs/tags/release
extends:
template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
parameters:
pool:
name: VSEngSS-MicroBuild2022-1ES
sdl:
sourceAnalysisPool:
name: AzurePipelines-EO
image: 1ESPT-Windows2022
policheck:
enabled: true
binskim:
enabled: true
scanOutputDirectoryOnly: true # BinSkim scans whole source tree but we only need to scan the output dir.
tsa:
enabled: true
configFile: $(Build.SourcesDirectory)\.config\tsaoptions.json
onboard: false # We already onboarded
stages:
- stage: Build
jobs:
- job: Build
templateContext:
mb:
signing:
enabled: true
signType: $(SignType)
steps:
- checkout: self
fetchDepth: 0 # avoid shallow clone so nbgv can do its work.
- template: /build.yml@self
parameters:
BuildConfiguration: $(BuildConfiguration)