2018-10-17 22:17:40 +00:00
|
|
|
trigger:
|
|
|
|
- master
|
2019-02-08 21:50:45 +00:00
|
|
|
- release/*
|
2018-10-17 22:17:40 +00:00
|
|
|
|
|
|
|
variables:
|
2019-01-24 19:21:51 +00:00
|
|
|
- name: _PublishBlobFeedUrl
|
|
|
|
value: https://dotnetcli.blob.core.windows.net/dotnet/index.json
|
|
|
|
- name: _PublishChecksumsBlobFeedUrl
|
|
|
|
value: https://dotnetclichecksums.blob.core.windows.net/dotnet/index.json
|
|
|
|
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
|
|
|
- group: DotNet-DotNetCli-Storage
|
2018-10-17 22:17:40 +00:00
|
|
|
|
2018-12-20 18:03:12 +00:00
|
|
|
jobs:
|
2018-10-17 22:17:40 +00:00
|
|
|
- template: /eng/build.yml
|
|
|
|
parameters:
|
|
|
|
agentOs: Windows_NT
|
2019-01-24 19:21:51 +00:00
|
|
|
pool:
|
|
|
|
${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
|
2019-03-28 04:23:07 +00:00
|
|
|
name: NetCorePublic-Int-Pool
|
|
|
|
queue: buildpool.windows.10.amd64.vs2017.open
|
2019-01-24 19:21:51 +00:00
|
|
|
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
2019-03-28 04:23:07 +00:00
|
|
|
name: NetCoreInternal-Int-Pool
|
|
|
|
queue: buildpool.windows.10.amd64.vs2017
|
2019-01-24 19:21:51 +00:00
|
|
|
timeoutInMinutes: 180
|
|
|
|
strategy:
|
2018-10-17 22:17:40 +00:00
|
|
|
matrix:
|
2019-01-24 19:21:51 +00:00
|
|
|
# Public-only builds
|
|
|
|
${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
|
2018-12-19 20:53:08 +00:00
|
|
|
Build_Debug_x86:
|
|
|
|
_BuildConfig: Debug
|
|
|
|
_BuildArchitecture: x86
|
|
|
|
_DOTNET_CLI_UI_LANGUAGE: ''
|
|
|
|
_DropSuffix: ''
|
|
|
|
Build_ES_Debug_x64:
|
|
|
|
_BuildConfig: Debug
|
|
|
|
_BuildArchitecture: x64
|
|
|
|
_DOTNET_CLI_UI_LANGUAGE: es
|
|
|
|
_DropSuffix: ''
|
|
|
|
Build_DropSuffix_Release_x64:
|
|
|
|
_BuildConfig: Release
|
|
|
|
_BuildArchitecture: x64
|
|
|
|
_DOTNET_CLI_UI_LANGUAGE: ''
|
|
|
|
_DropSuffix: true
|
2019-01-24 19:21:51 +00:00
|
|
|
# Internal-only builds
|
|
|
|
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
2018-12-19 20:53:08 +00:00
|
|
|
Build_Release_x86:
|
|
|
|
_BuildConfig: Release
|
|
|
|
_BuildArchitecture: x86
|
|
|
|
_DOTNET_CLI_UI_LANGUAGE: ''
|
|
|
|
_DropSuffix: ''
|
2019-01-24 19:21:51 +00:00
|
|
|
# Always run builds
|
2018-10-17 22:17:40 +00:00
|
|
|
Build_Release_x64:
|
|
|
|
_BuildConfig: Release
|
|
|
|
_BuildArchitecture: x64
|
|
|
|
_DOTNET_CLI_UI_LANGUAGE: ''
|
|
|
|
_DropSuffix: ''
|
2018-11-17 01:54:46 +00:00
|
|
|
Build_Release_arm:
|
|
|
|
_BuildConfig: Release
|
|
|
|
_BuildArchitecture: arm
|
|
|
|
_DOTNET_CLI_UI_LANGUAGE: ''
|
|
|
|
_DropSuffix: ''
|
2018-10-17 22:17:40 +00:00
|
|
|
|
|
|
|
- template: /eng/build.yml
|
|
|
|
parameters:
|
|
|
|
agentOs: Linux
|
2019-01-24 19:21:51 +00:00
|
|
|
pool:
|
2018-10-17 22:17:40 +00:00
|
|
|
name: Hosted Ubuntu 1604
|
2019-01-24 19:21:51 +00:00
|
|
|
timeoutInMinutes: 180
|
|
|
|
strategy:
|
2018-10-17 22:17:40 +00:00
|
|
|
matrix:
|
2019-01-24 19:21:51 +00:00
|
|
|
${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
|
2018-12-19 20:53:08 +00:00
|
|
|
Build_Ubuntu_14_04_Release_x64:
|
|
|
|
_BuildConfig: Release
|
|
|
|
_DockerParameter: '--docker ubuntu.14.04'
|
|
|
|
_LinuxPortable: ''
|
|
|
|
_RuntimeIdentifier: ''
|
|
|
|
_BuildArchitecture: 'x64'
|
|
|
|
_DropSuffix: ''
|
|
|
|
Build_Ubuntu_16_04_Debug_x64:
|
|
|
|
_BuildConfig: Debug
|
|
|
|
_DockerParameter: '--docker ubuntu.16.04'
|
|
|
|
_LinuxPortable: ''
|
|
|
|
_RuntimeIdentifier: ''
|
|
|
|
_BuildArchitecture: 'x64'
|
|
|
|
_DropSuffix: ''
|
|
|
|
Build_Ubuntu_18_04_Debug_x64:
|
|
|
|
_BuildConfig: Debug
|
|
|
|
_DockerParameter: '--docker ubuntu.18.04'
|
|
|
|
_LinuxPortable: '--linux-portable'
|
|
|
|
_RuntimeIdentifier: ''
|
|
|
|
_BuildArchitecture: 'x64'
|
|
|
|
_DropSuffix: ''
|
|
|
|
Build_Fedora_27_Debug_x64:
|
|
|
|
_BuildConfig: Debug
|
|
|
|
_DockerParameter: '--docker fedora.27'
|
|
|
|
_LinuxPortable: '--linux-portable'
|
|
|
|
_RuntimeIdentifier: ''
|
|
|
|
_BuildArchitecture: 'x64'
|
|
|
|
_DropSuffix: ''
|
|
|
|
Build_OpenSUSE_42_3_Debug_x64:
|
|
|
|
_BuildConfig: Debug
|
|
|
|
_DockerParameter: '--docker opensuse.42.3'
|
|
|
|
_LinuxPortable: '--linux-portable'
|
|
|
|
_RuntimeIdentifier: ''
|
|
|
|
_BuildArchitecture: 'x64'
|
|
|
|
_DropSuffix: ''
|
|
|
|
Build_CentOS_7_1_Debug_x64:
|
|
|
|
_BuildConfig: Debug
|
|
|
|
_DockerParameter: '--docker centos'
|
|
|
|
_LinuxPortable: ''
|
|
|
|
_RuntimeIdentifier: ''
|
|
|
|
_BuildArchitecture: 'x64'
|
|
|
|
_DropSuffix: ''
|
2019-03-28 17:20:27 +00:00
|
|
|
Build_Debian_Jessie_Debug_x64:
|
2018-12-19 20:53:08 +00:00
|
|
|
_BuildConfig: Debug
|
|
|
|
_DockerParameter: '--docker debian'
|
|
|
|
_LinuxPortable: ''
|
|
|
|
_RuntimeIdentifier: ''
|
|
|
|
_BuildArchitecture: 'x64'
|
|
|
|
_DropSuffix: ''
|
|
|
|
Build_Rhel_7_2_Release_x64:
|
|
|
|
_BuildConfig: Release
|
|
|
|
_DockerParameter: '--docker rhel'
|
|
|
|
_LinuxPortable: ''
|
|
|
|
_RuntimeIdentifier: ''
|
|
|
|
_BuildArchitecture: 'x64'
|
|
|
|
_DropSuffix: ''
|
|
|
|
Build_Rhel_6_Debug_x64:
|
|
|
|
_BuildConfig: Debug
|
|
|
|
_DockerParameter: '--docker rhel.6'
|
|
|
|
_LinuxPortable: ''
|
|
|
|
_RuntimeIdentifier: '--runtime-id rhel.6-x64'
|
|
|
|
_BuildArchitecture: 'x64'
|
|
|
|
_DropSuffix: ''
|
|
|
|
Build_Arm_Debug:
|
|
|
|
_BuildConfig: Debug
|
|
|
|
_DockerParameter: ''
|
|
|
|
_LinuxPortable: '--linux-portable'
|
2019-03-14 00:46:47 +00:00
|
|
|
_RuntimeIdentifier: '--runtime-id linux-arm'
|
2018-12-19 20:53:08 +00:00
|
|
|
_BuildArchitecture: 'arm'
|
|
|
|
_DropSuffix: ''
|
|
|
|
Build_Arm64_Debug:
|
|
|
|
_BuildConfig: Debug
|
|
|
|
_DockerParameter: ''
|
|
|
|
_LinuxPortable: '--linux-portable'
|
2019-03-14 00:46:47 +00:00
|
|
|
_RuntimeIdentifier: '--runtime-id linux-arm64'
|
2018-12-19 20:53:08 +00:00
|
|
|
_BuildArchitecture: 'arm64'
|
|
|
|
_DropSuffix: ''
|
|
|
|
Build_Linux_musl_Debug_x64:
|
|
|
|
_BuildConfig: Debug
|
|
|
|
_DockerParameter: '--docker alpine.3.6'
|
|
|
|
_LinuxPortable: ''
|
|
|
|
_RuntimeIdentifier: '--runtime-id linux-musl-x64'
|
|
|
|
_BuildArchitecture: 'x64'
|
|
|
|
_DropSuffix: ''
|
|
|
|
Build_LinuxPortable_NoSuffix_Release_x64:
|
|
|
|
_BuildConfig: Release
|
|
|
|
_DockerParameter: ''
|
|
|
|
_LinuxPortable: '--linux-portable'
|
|
|
|
_RuntimeIdentifier: ''
|
|
|
|
_BuildArchitecture: 'x64'
|
|
|
|
_DropSuffix: true
|
|
|
|
Build_Arm_NoSuffix_Release:
|
|
|
|
_BuildConfig: Release
|
|
|
|
_DockerParameter: ''
|
|
|
|
_LinuxPortable: '--linux-portable'
|
2019-03-14 00:46:47 +00:00
|
|
|
_RuntimeIdentifier: '--runtime-id linux-arm'
|
2018-12-19 20:53:08 +00:00
|
|
|
_BuildArchitecture: 'arm'
|
|
|
|
_DropSuffix: true
|
2019-01-24 19:21:51 +00:00
|
|
|
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
2018-12-19 20:53:08 +00:00
|
|
|
Build_Arm_Release:
|
|
|
|
_BuildConfig: Release
|
|
|
|
_DockerParameter: ''
|
|
|
|
_LinuxPortable: '--linux-portable'
|
2019-03-14 00:46:47 +00:00
|
|
|
_RuntimeIdentifier: '--runtime-id linux-arm'
|
2018-12-19 20:53:08 +00:00
|
|
|
_BuildArchitecture: 'arm'
|
|
|
|
_DropSuffix: ''
|
|
|
|
Build_Arm64_Release:
|
|
|
|
_BuildConfig: Release
|
|
|
|
_DockerParameter: ''
|
|
|
|
_LinuxPortable: '--linux-portable'
|
2019-03-14 00:46:47 +00:00
|
|
|
_RuntimeIdentifier: '--runtime-id linux-arm64'
|
2018-12-19 20:53:08 +00:00
|
|
|
_BuildArchitecture: 'arm64'
|
|
|
|
_DropSuffix: ''
|
2019-01-24 19:21:51 +00:00
|
|
|
Build_Rhel_6_Release_x64:
|
|
|
|
_BuildConfig: Release
|
2019-01-25 00:13:25 +00:00
|
|
|
_DockerParameter: '--docker rhel.6'
|
2019-01-24 19:21:51 +00:00
|
|
|
_LinuxPortable: ''
|
|
|
|
_RuntimeIdentifier: '--runtime-id rhel.6-x64'
|
|
|
|
_BuildArchitecture: 'x64'
|
|
|
|
_DropSuffix: ''
|
2018-12-19 20:53:08 +00:00
|
|
|
Build_Linux_musl_Release_x64:
|
|
|
|
_BuildConfig: Release
|
2019-01-25 00:13:25 +00:00
|
|
|
_DockerParameter: '--docker alpine.3.6'
|
2018-12-19 20:53:08 +00:00
|
|
|
_LinuxPortable: ''
|
|
|
|
_RuntimeIdentifier: '--runtime-id linux-musl-x64'
|
|
|
|
_BuildArchitecture: 'x64'
|
|
|
|
_DropSuffix: ''
|
2018-12-24 18:12:23 +00:00
|
|
|
Build_Linux_Portable_Deb_Release_x64:
|
|
|
|
_BuildConfig: Release
|
2019-01-25 00:13:25 +00:00
|
|
|
_DockerParameter: '--docker ubuntu.16.04'
|
2018-12-24 18:12:23 +00:00
|
|
|
_LinuxPortable: '--linux-portable'
|
|
|
|
_RuntimeIdentifier: ''
|
|
|
|
_BuildArchitecture: 'x64'
|
|
|
|
_DropSuffix: ''
|
|
|
|
# Do not publish zips and tarballs. The linux-x64 binaries are
|
|
|
|
# already published by Build_LinuxPortable_Release_x64
|
2018-12-26 19:42:24 +00:00
|
|
|
_AdditionalBuildParameters: '/p:PublishBinariesAndBadge=false'
|
2018-12-22 05:43:17 +00:00
|
|
|
Build_Linux_Portable_Rpm_Release_x64:
|
|
|
|
_BuildConfig: Release
|
2019-01-25 00:13:25 +00:00
|
|
|
_DockerParameter: '--docker rhel'
|
2018-12-22 05:43:17 +00:00
|
|
|
_LinuxPortable: '--linux-portable'
|
|
|
|
_RuntimeIdentifier: ''
|
|
|
|
_BuildArchitecture: 'x64'
|
|
|
|
_DropSuffix: ''
|
|
|
|
# Do not publish zips and tarballs. The linux-x64 binaries are
|
|
|
|
# already published by Build_LinuxPortable_Release_x64
|
2018-12-26 19:42:24 +00:00
|
|
|
_AdditionalBuildParameters: '/p:PublishBinariesAndBadge=false'
|
2018-10-17 22:17:40 +00:00
|
|
|
Build_LinuxPortable_Release_x64:
|
|
|
|
_BuildConfig: Release
|
|
|
|
_DockerParameter: ''
|
|
|
|
_LinuxPortable: '--linux-portable'
|
|
|
|
_RuntimeIdentifier: ''
|
|
|
|
_BuildArchitecture: 'x64'
|
|
|
|
_DropSuffix: ''
|
|
|
|
|
|
|
|
- template: /eng/build.yml
|
|
|
|
parameters:
|
|
|
|
agentOs: Darwin
|
2019-01-24 19:21:51 +00:00
|
|
|
pool:
|
2018-10-17 22:17:40 +00:00
|
|
|
name: Hosted macOS
|
2019-01-24 19:21:51 +00:00
|
|
|
timeoutInMinutes: 180
|
|
|
|
strategy:
|
2018-10-17 22:17:40 +00:00
|
|
|
matrix:
|
|
|
|
Build_Release:
|
|
|
|
_BuildConfig: Release
|
2018-12-19 20:53:08 +00:00
|
|
|
|
2019-01-08 01:53:44 +00:00
|
|
|
# https://github.com/dotnet/core-sdk/issues/248
|
|
|
|
# - template: /eng/build.yml
|
|
|
|
# parameters:
|
|
|
|
# agentOs: FreeBSD
|
|
|
|
# queue:
|
|
|
|
# name: dnceng-freebsd-internal
|
|
|
|
# timeoutInMinutes: 180
|
|
|
|
# matrix:
|
|
|
|
# Build_Release:
|
|
|
|
# _BuildConfig: Release
|
|
|
|
# _AdditionalBuildParameters: '/p:DisableSourceLink=true /p:DISABLE_CROSSGEN=true'
|
2018-12-19 20:53:08 +00:00
|
|
|
|
2018-12-20 18:03:12 +00:00
|
|
|
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
|
|
|
- job: Copy_SDK_To_Latest
|
|
|
|
dependsOn:
|
|
|
|
- Windows_NT
|
|
|
|
- Linux
|
|
|
|
- Darwin
|
|
|
|
pool:
|
|
|
|
name: Hosted VS2017
|
|
|
|
condition: succeeded()
|
2019-01-24 19:21:51 +00:00
|
|
|
variables:
|
|
|
|
- group: DotNet-DotNetCli-Storage
|
2018-12-20 18:03:12 +00:00
|
|
|
steps:
|
|
|
|
- script: eng/CopyToLatest.cmd
|
2019-01-24 19:21:51 +00:00
|
|
|
/p:DotnetPublishSdkAssetsBlobFeedUrl=$(_PublishBlobFeedUrl)
|
2018-12-22 05:27:03 +00:00
|
|
|
/p:DotNetPublishSdkAssetsBlobFeedKey=$(dotnetcli-storage-key)
|
2019-01-24 19:21:51 +00:00
|
|
|
/p:DotnetPublishChecksumsBlobFeedUrl=$(_PublishChecksumsBlobFeedUrl)
|
2018-12-21 22:58:11 +00:00
|
|
|
/p:DotNetPublishChecksumsBlobFeedKey=$(dotnetclichecksums-storage-key)
|
2018-12-22 05:27:03 +00:00
|
|
|
displayName: Copy to latest
|
2018-12-20 18:03:12 +00:00
|
|
|
|
2019-01-24 19:21:51 +00:00
|
|
|
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
|
|
|
- template: /eng/common/templates/job/publish-build-assets.yml
|
|
|
|
parameters:
|
|
|
|
dependsOn:
|
|
|
|
- Windows_NT
|
|
|
|
- Linux
|
|
|
|
- Darwin
|
|
|
|
enablePublishBuildArtifacts: true
|
|
|
|
pool:
|
|
|
|
vmImage: vs2017-win2016
|
2019-03-12 21:36:55 +00:00
|
|
|
|
2019-03-05 21:48:26 +00:00
|
|
|
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
2019-03-12 21:36:55 +00:00
|
|
|
- template: /eng/common/templates/job/generate-graph-files.yml
|
|
|
|
parameters:
|
|
|
|
continueOnError: true
|
|
|
|
includeToolset: false
|
|
|
|
dependsOn:
|
|
|
|
- Asset_Registry_Publish
|
|
|
|
pool:
|
2019-03-28 04:23:07 +00:00
|
|
|
vmImage: vs2017-win2016
|