Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
f71f8b8e
R
roslyn
项目概览
lwm1986
/
roslyn
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roslyn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
f71f8b8e
编写于
3月 05, 2020
作者:
G
Gen Lu
提交者:
GitHub
3月 05, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #42208 from genlu/dev/gel/FixPRValidation
Fix official build
上级
c7a73f7c
be024362
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
27 addition
and
7 deletion
+27
-7
azure-pipelines-official.yml
azure-pipelines-official.yml
+27
-7
未找到文件。
azure-pipelines-official.yml
浏览文件 @
f71f8b8e
...
...
@@ -38,21 +38,26 @@ stages:
-
powershell
:
Write-Host "##vso[task.setvariable variable=SourceBranchName]$('$(Build.SourceBranch)'.Substring('refs/heads/'.Length))"
displayName
:
Setting SourceBranchName variable
-
powershell
:
Write-Host "##vso[task.setvariable variable=IsPRValidationBuild]($(PRNumber) -ne '') -and ($(PRNumber) -ne 'default')"
displayName
:
Setting IsPRValidationBuild variable
-
task
:
tagBuildOrRelease@0
displayName
:
Tag build
displayName
:
Tag official build
inputs
:
type
:
'
Build'
tags
:
'
OfficialBuild'
condition
:
and(succeeded(), eq(variables['PRNumber'], 'default'))
-
task
:
tagBuildOrRelease@0
displayName
:
Tag PR validation build
inputs
:
type
:
'
Build'
tags
:
if (variables['IsPRValidationBuild']) { 'PRValidationBuild' } else { "OfficialBuild" }
tags
:
'
PRValidationBuild'
condition
:
and(succeeded(), ne(variables['PRNumber'], 'default'))
-
task
:
PowerShell@2
displayName
:
Setup branch for insertion validation
inputs
:
filePath
:
'
eng\setup-pr-validation.ps1'
arguments
:
'
-sourceBranchName
$(SourceBranchName)
-prNumber
$(PRNumber)'
condition
:
and(succeeded(),
variables['IsPRValidationBuild']
)
condition
:
and(succeeded(),
ne(variables['PRNumber'], 'default')
)
-
powershell
:
Write-Host "##vso[task.setvariable variable=VisualStudio.DropName]Products/$(System.TeamProject)/$(Build.Repository.Name)/$(SourceBranchName)/$(Build.BuildNumber)"
displayName
:
Setting VisualStudio.DropName variable
...
...
@@ -262,10 +267,25 @@ stages:
queue
:
name
:
Hosted VS2017
-
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), eq(variables['IsPRValidationBuild'],
false
)) }}
:
# We need to skip post-build stages for PR validation build, but it can only be identified by
# the runtime variable 'PRNumber', thus this dummy stage. Also the dummy job is required
# otherwise AzDO would just repeat jobs from previous stage.
-
stage
:
SetValidateDependency
displayName
:
Setup the dependency for post-build stages
condition
:
and(succeeded(), eq(variables['PRNumber'], 'default'))
jobs
:
-
job
:
Log
displayName
:
Log
steps
:
-
powershell
:
Write-Host "Setup the dependency for post-build stages."
displayName
:
Log
-
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}
:
-
template
:
eng\common\templates\post-build\post-build.yml
parameters
:
# Symbol validation is not entirely reliable as of yet, so should be turned off until
# https://github.com/dotnet/arcade/issues/2871 is resolved.
enableSymbolValidation
:
false
enableSourceLinkValidation
:
false
validateDependsOn
:
-
SetValidateDependency
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录