You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: eng/common/post-build/check-channel-consistency.ps1
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,11 @@ param(
6
6
try {
7
7
.$PSScriptRoot\post-build-utils.ps1
8
8
9
+
if ($PromoteToChannels-eq"") {
10
+
Write-PipelineTaskError-Type 'warning'-Message "This build won't publish assets as it's not configured to any Maestro channel. If that wasn't intended use Darc to configure a default channel using add-default-channel for this branch or to promote it to a channel using add-build-to-channel. See https://github.com/dotnet/arcade/blob/master/Documentation/Darc.md#assigning-an-individual-build-to-a-channel for more info."
11
+
ExitWithExitCode 0
12
+
}
13
+
9
14
# Check that every channel that Maestro told to promote the build to
0 commit comments