未验证 提交 c6a421bd 编写于 作者: J Jose Perez Rodriguez 提交者: GitHub

Migrating iot yml from phases to jobs (#358)

上级 8bae3cab
variables:
Build.Repository.Clean: true
_HelixType: build/product
_HelixSource: pr/dotnet/arcade-minimalci-sample/$(Build.SourceBranch)
_enableTelemetry: true
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
OfficialBuildId: $(Build.BuildNumber)
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_MULTILEVEL_LOOKUP: 0
- name: Build.Repository.Clean
value: true
- name: _enableTelemetry
value: true
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- name: OfficialBuildId
value: $(Build.BuildNumber)
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
value: 1
- name: DOTNET_MULTILEVEL_LOOKUP
value: 0
resources:
containers:
......@@ -22,19 +25,21 @@ trigger:
pr:
- master
# Three phases for each of the three OSes we want to run on
phases:
- template: /eng/common/templates/phases/base.yml
jobs:
- template: /eng/common/templates/job/job.yml
parameters:
agentOs: Windows_NT
name: Windows_NT
enableTelemetry: $(_enableTelemetry)
queue:
enablePublishBuildArtifacts: true
helixRepo: dotnet/iot
pool:
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
name: dotnet-internal-temp
name: NetCoreInternal-Int-Pool
queue: buildpool.windows.10.amd64.vs2017
${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
name: dotnet-external-temp
parallel: 99
name: Hosted VS2017
strategy:
matrix:
debug_configuration:
_BuildConfig: Debug
......@@ -57,19 +62,20 @@ phases:
artifactType: container
condition: eq(variables['_BuildConfig'], 'Release')
variables:
_HelixBuildConfig: $(_BuildConfig)
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
_TeamName: DotNetCore
_SignType: real
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- _TeamName: DotNetCore
- _SignType: real
- template: /eng/common/templates/phases/base.yml
- template: /eng/common/templates/job/job.yml
parameters:
agentOs: OSX
name: OSX
enableTelemetry: $(_enableTelemetry)
queue:
name: Hosted macOS Preview
parallel: 99
enablePublishBuildArtifacts: true
helixRepo: dotnet/iot
pool:
name: Hosted macOS
strategy:
matrix:
debug_configuration:
_BuildConfig: Debug
......@@ -82,15 +88,14 @@ phases:
name: Build
displayName: Build
condition: succeeded()
variables:
_HelixBuildConfig: $(_BuildConfig)
- template: /eng/common/templates/phases/base.yml
- template: /eng/common/templates/job/job.yml
parameters:
agentOs: Linux
name: Linux_libgpiod
enableTelemetry: $(_enableTelemetry)
queue:
helixRepo: dotnet/iot
pool:
name: Hosted Ubuntu 1604
steps:
- script: src/Native/copyLibgpiod.sh
......@@ -103,20 +108,20 @@ phases:
pathToPublish: $(Build.SourcesDirectory)/artifacts/libgpiod/
artifactName: Libgpiod
artifactType: container
variables:
_HelixBuildConfig: $(_BuildConfig)
- template: /eng/common/templates/phases/base.yml
- template: /eng/common/templates/job/job.yml
parameters:
dependsOn:
- Linux_libgpiod
agentOs: Linux
name: Linux
enableTelemetry: $(_enableTelemetry)
queue:
enablePublishBuildArtifacts: true
helixRepo: dotnet/iot
pool:
name: Hosted Ubuntu 1604
parallel: 99
container: LinuxContainer
container: LinuxContainer
strategy:
matrix:
debug_configuration:
_BuildConfig: Debug
......@@ -146,10 +151,8 @@ phases:
artifactName: Native
artifactType: container
condition: eq(variables['_BuildConfig'], 'Release')
variables:
_HelixBuildConfig: $(_BuildConfig)
- template: /eng/common/templates/phases/base.yml
- template: /eng/common/templates/job/job.yml
parameters:
dependsOn:
- Windows_NT
......@@ -158,12 +161,15 @@ phases:
agentOs: Windows_NT
name: BuildPackages
enableTelemetry: $(_enableTelemetry)
queue:
enablePublishBuildArtifacts: true
helixRepo: dotnet/iot
pool:
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
name: dotnet-internal-temp
name: NetCoreInternal-Int-Pool
queue: buildpool.windows.10.amd64.vs2017
${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
name: dotnet-external-temp
parallel: 99
name: Hosted VS2017
strategy:
matrix:
release_configuration:
_BuildConfig: Release
......@@ -200,24 +206,26 @@ phases:
artifactType: container
condition: eq(variables['_BuildConfig'], 'Release')
variables:
_HelixBuildConfig: $(_BuildConfig)
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
_TeamName: DotNetCore
_SignType: real
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- _TeamName: DotNetCore
- _SignType: real
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- template: /eng/common/templates/phases/base.yml
- template: /eng/common/templates/job/job.yml
parameters:
dependsOn:
- BuildPackages
agentOs: Windows_NT
name: PublishToMyGet
enableTelemetry: $(_enableTelemetry)
queue:
enablePublishBuildArtifacts: true
helixRepo: dotnet/iot
pool:
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
name: dotnet-internal-temp
name: NetCoreInternal-Int-Pool
queue: buildpool.windows.10.amd64.vs2017
${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
name: dotnet-external-temp
name: Hosted VS2017
steps:
- task: DownloadBuildArtifacts@0
displayName: Download Built Packages
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册