forked from dotnet/templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vsts-dnceng.yml
52 lines (48 loc) · 1.3 KB
/
.vsts-dnceng.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
# Branches that trigger a build on commit
trigger:
- main
- feature/*
variables:
- name: Codeql.Enabled
value: true
# Branches that trigger builds on PR
pr:
- master
- main
- feature/*
jobs:
- job: Windows
pool:
vmImage: 'windows-2019'
variables:
_os: Windows
strategy:
maxParallel: 4
matrix:
Debug:
_configuration: Debug
Release:
_configuration: Release
steps:
- script: eng\common\CIBuild.cmd -configuration $(_configuration) -prepareMachine
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\artifacts\log\$(_configuration)'
ArtifactName: '$(_configuration) log folder'
publishLocation: Container
continueOnError: true
condition: failed()
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\artifacts\bin'
ArtifactName: '$(_configuration) bin folder'
publishLocation: Container
continueOnError: true
condition: failed()
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\artifacts\VSSetup\$(_configuration)'
ArtifactName: '$(_configuration) VSSetup folder'
publishLocation: Container
continueOnError: true
condition: failed()