forked from microsoft/security-utilities
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
61 lines (54 loc) · 1.85 KB
/
azure-pipelines.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
pool:
vmImage: 'windows-latest'
variables:
solution: 'src\Microsoft.Security.Utilities.sln'
buildConfiguration: 'Release'
resources:
repositories:
- repository: 1esPipelines
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
extends:
template: v1/1ES.Unofficial.PipelineTemplate.yml@1esPipelines
parameters:
pool:
name: 1ES-Shared-Hosted-Pool_Windows-Server-2022
os: windows
containers:
default_windows_container:
image: 1espipelinesdevpme.azurecr.io/windows/ltsc2022/vse2022:latest
registry: 1espipelinesdevpme.azurecr.io
tenantId: PME
identityType: 1ESPipelineIdentity
stages:
- stage: build
jobs:
- job: build
templateContext:
inputs:
- input: checkout
repository: self
submodules: true
outputs:
- output: pipelineArtifact
targetPath: $(System.DefaultWorkingDirectory)
artifactName: security-utilities
steps:
- task: DotNetCoreCLI@2
displayName: 'dotnet restore'
inputs:
command: 'restore'
projects: $(solution)
- task: DotNetCoreCLI@2
displayName: 'dotnet build'
inputs:
command: 'build'
projects: $(solution)
arguments: '--configuration $(buildConfiguration) --no-restore'
- task: DotNetCoreCLI@2
displayName: 'dotnet test'
inputs:
command: test
projects: $(solution)
arguments: '--collect "Code coverage" --no-build --configuration $(buildConfiguration)'