azure-pipelines.yml 1.2 KB
Newer Older
1
# This is a simple wrapper for eng/pipeline.yml to get around the limitation of
S
Steven Kirbach 已提交
2 3 4 5
# 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.
6
#
S
Steven Kirbach 已提交
7

D
dotnet-maestro[bot] 已提交
8
variables:
S
Steven Kirbach 已提交
9

S
Steven Kirbach 已提交
10 11
  # clean the local repo on the build agents
  Build.Repository.Clean: true
12 13


C
Cesar Soares Lucas 已提交
14 15
  _PublishUsingPipelines: true
  _DotNetArtifactsCategory: WINDOWSDESKTOP
S
Steven Kirbach 已提交
16

17
# only trigger ci builds for the master and release branches
S
Steven Kirbach 已提交
18 19
trigger:
- master
20
- release/3.0
21
- arcade
D
dotnet-maestro[bot] 已提交
22

S
Steven Kirbach 已提交
23 24 25 26
# To be added in the future when VSTS supports this feature
# only trigger pull request builds for the master branch
# pr:
# - master
D
dotnet-maestro[bot] 已提交
27

S
Steven Kirbach 已提交
28
# Call the pipeline.yml template, which does the real work
S
Steven Kirbach 已提交
29
jobs:
S
Steven Kirbach 已提交
30 31
- template: /eng/pipeline.yml
  parameters:
32
    ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
S
Steven Kirbach 已提交
33
      # agent pool can't be read from a user-defined variable (Azure DevOps limitation)
34 35 36
      pool:
        name: NetCoreInternal-Pool
        queue: buildpool.windows.10.amd64.vs2019.pre
S
Steven Kirbach 已提交
37
      # runAsPublic is used in expressions, which can't read from user-defined variables
38
      runAsPublic: false
39