azure-pipelines.yml 1.1 KB
Newer Older
S
Steven Kirbach 已提交
1 2 3 4 5 6
# 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.

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

S
Steven Kirbach 已提交
9 10
  # clean the local repo on the build agents
  Build.Repository.Clean: true
D
dotnet-maestro[bot] 已提交
11

S
Steven Kirbach 已提交
12 13 14
  _PublishUsingPipelines: false
  _DotNetArtifactsCategory: .NETCore

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

S
Steven Kirbach 已提交
20 21 22 23
# 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] 已提交
24

S
Steven Kirbach 已提交
25
# Call the pipeline.yml template, which does the real work
S
Steven Kirbach 已提交
26
jobs:
S
Steven Kirbach 已提交
27 28
- template: /eng/pipeline.yml
  parameters:
29
    ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
S
Steven Kirbach 已提交
30
      # agent pool can't be read from a user-defined variable (Azure DevOps limitation)
S
Steven Kirbach 已提交
31
      agentPool: dotnet-internal-temp-vs2019
S
Steven Kirbach 已提交
32
      # runAsPublic is used in expressions, which can't read from user-defined variables
33
      runAsPublic: false