1 Star 0 Fork 0

github_mirrors/standard

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
azure-pipelines.yml 4.29 KB
一键复制 编辑 原始数据 按行查看 历史
Divino César 提交于 2019-07-29 16:49 . Update azure-pipelines.yml
# CI and PR triggers
trigger:
- master
- release/3.0
pr:
- master
- release/3.0
variables:
- name: _TeamName
value: DotNetCore
- name: _BuildConfig
value: Release
- name: _PublishUsingPipelines
value: true
- name: _DotNetArtifactsCategory
value: .NETCore
stages:
- stage: build
displayName: Build
jobs:
- template: /eng/common/templates/jobs/jobs.yml
parameters:
enableMicrobuild: true
enablePublishBuildArtifacts: true
enablePublishTestResults: false
enablePublishBuildAssets: true
enablePublishUsingPipelines: ${{ variables._PublishUsingPipelines }}
enableTelemetry: true
helixRepo: dotnet/standard
jobs:
- job: Windows_NT
pool:
${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
name: NetCorePublic-Pool
queue: buildpool.windows.10.amd64.vs2017.open
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
name: NetCoreInternal-Pool
queue: buildpool.windows.10.amd64.vs2017
variables:
# Enable signing for internal, non-PR builds
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- group: DotNet-Blob-Feed
- group: DotNet-Symbol-Server-Pats
- name: _SignType
value: Real
- name: _DotNetPublishToBlobFeed
value: true
- name: _BuildArgs
value: /p:SignType=$(_SignType)
/p:DotNetSignType=$(_SignType)
/p:MicroBuild_SigningEnabled=true
/p:OverridePackageSource=https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json
/p:TeamName=$(_TeamName)
/p:DotNetPublishBlobFeedKey=$(dotnetfeed-storage-access-key-1)
/p:DotNetPublishBlobFeedUrl=https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json
/p:DotNetPublishToBlobFeed=true
/p:DotNetPublishUsingPipelines=$(_PublishUsingPipelines)
/p:DotNetArtifactsCategory=$(_DotNetArtifactsCategory)
/p:DotNetSymbolServerTokenMsdl=$(microsoft-symbol-server-pat)
/p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat)
/p:OfficialBuildId=$(BUILD.BUILDNUMBER)
- name: _OfficialBuildIdArgs
# else
- ${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
- name: _SignType
value: Test
- name: _BuildArgs
value: /p:SignType=$(_SignType)
steps:
- checkout: self
clean: true
- script: build.cmd
-configuration $(_BuildConfig)
-prepareMachine
-sign
-publish
-ci
-warnaserror:0
$(_BuildArgs)
displayName: Windows Build / Publish
# Linux leg (only runs in CI)
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
- job: Linux
pool:
name: Hosted Ubuntu 1604
variables:
- name: _SignType
value: Test
steps:
- checkout: self
clean: true
- script: ./build.sh
--configuration $(_BuildConfig)
--prepareMachine
--ci
displayName: Linux Build
# OSX leg (only runs in CI)
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
- job: OSX
pool:
name: Hosted macOS
variables:
- name: _SignType
value: Test
steps:
- checkout: self
clean: true
- script: ./build.sh
--configuration $(_BuildConfig)
--prepareMachine
--ci
displayName: OSX Build
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- template: eng\common\templates\post-build\post-build.yml
parameters:
# Symbol validation isn't being very reliable lately. This should be enabled back
# once this issue is resolved: https://github.com/dotnet/arcade/issues/2871
enableSymbolValidation: false
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/github_mirrors/standard.git
git@gitee.com:github_mirrors/standard.git
github_mirrors
standard
standard
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385