Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0d52a8b

Browse files
JanProvaznikJanKrivanekpremun
authored
[9.0] Add optin for default channel registrations check(#15373) (#15863)
Co-authored-by: Jan Krivanek <jankrivanek@microsoft.com>Co-authored-by: Přemek Vysoký <premek.vysoky@microsoft.com>
1 parent086a177 commit0d52a8b

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

‎eng/common/core-templates/post-build/post-build.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ parameters:
4444
displayName:Publish installers and checksums
4545
type:boolean
4646
default:true
47+
48+
-name:requireDefaultChannels
49+
displayName:Fail the build if there are no default channel(s) registrations for the current build
50+
type:boolean
51+
default:false
4752

4853
-name:SDLValidationParameters
4954
type:object
@@ -312,5 +317,6 @@ stages:
312317
-PublishingInfraVersion ${{ parameters.publishingInfraVersion }}
313318
-AzdoToken '$(System.AccessToken)'
314319
-WaitPublishingFinishtrue
320+
-RequireDefaultChannels ${{ parameters.requireDefaultChannels }}
315321
-ArtifactsPublishingAdditionalParameters '${{ parameters.artifactsPublishingAdditionalParameters }}'
316322
-SymbolPublishingAdditionalParameters '${{ parameters.symbolPublishingAdditionalParameters }}'

‎eng/common/post-build/publish-using-darc.ps1‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ param(
55
[Parameter(Mandatory=$false)][string]$MaestroApiEndPoint='https://maestro.dot.net',
66
[Parameter(Mandatory=$true)][string]$WaitPublishingFinish,
77
[Parameter(Mandatory=$false)][string]$ArtifactsPublishingAdditionalParameters,
8-
[Parameter(Mandatory=$false)][string]$SymbolPublishingAdditionalParameters
8+
[Parameter(Mandatory=$false)][string]$SymbolPublishingAdditionalParameters,
9+
[Parameter(Mandatory=$false)][string]$RequireDefaultChannels
910
)
1011

1112
try {
@@ -33,6 +34,10 @@ try {
3334
if ("false"-eq$WaitPublishingFinish) {
3435
$optionalParams.Add("--no-wait")|Out-Null
3536
}
37+
38+
if ("true"-eq$RequireDefaultChannels) {
39+
$optionalParams.Add("--default-channels-required")|Out-Null
40+
}
3641

3742
&$darcadd-build-to-channel`
3843
--id$buildId`

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp