forked from dotnet/wpf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
47 lines (39 loc) · 1.68 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
# This is a simple wrapper for eng/ci.yml to get around the limitation of
# user-defined variables not being available in yaml template expressions.
# Parameters ARE available in template expressions, and parameters can have default values,
# so they can be used to control yaml flow.
variables:
# clean the local repo on the build agents
Build.Repository.Clean: true
# This project only builds a transport package
_IsShipping: false
# Set some variables based on build conditions
${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
_HelixType: build/product
_HelixSource: pr/dotnet/wpf/$(Build.SourceBranch)
_PublishType: none
_SignType: test
_DotNetPublishToBlobFeed: false
# else
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
_TeamName: DotNetCore
_HelixSource: official/dotnet/wpf/$(Build.SourceBranch)
_PublishType: blob
_SignType: real
_DotNetPublishToBlobFeed: true
# only trigger ci builds for the master branch
trigger:
- master
# To be added in the future when VSTS supports this feature
# only trigger pull request builds for the master branch
# pr:
# - master
# Call the pipeline.yml template, which does the real work
phases:
- template: /eng/pipeline.yml
parameters:
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
# agent pool can't be read from a user-defined variable (Azure DevOps limitation)
agentPool: dotnet-internal-temp
# runAsPublic is used in expressions, which can't read from user-defined variables
runAsPublic: false