From 2e6e797cd1cca425a10eb039ad992d5698915113 Mon Sep 17 00:00:00 2001 From: Rui Marinho Date: Thu, 20 Aug 2026 18:09:13 +0100 Subject: [PATCH] [ci] Remove dangling empty conditional in variables.yml PR #37589 removed `- group: Publish-Build-Assets`, which was the only child of the `${{ if eq(variables['Build.DefinitionName'], 'dotnet-maui') }}` conditional, but left the now-empty conditional header behind. Azure DevOps requires a conditional insertion block to contain at least one entry, so the internal `dotnet-maui` pipeline fails to compile the pipeline YAML before running any stage: /eng/pipelines/common/variables.yml (Line: 81, Col: 7): Expected at least one key-value pair in the mapping The public `maui-pr` definition is unaffected because the outer guard only matches the `dotnet-maui` / `dotnet-maui-build` definition names, so the block is never expanded there. That is why PR validation stayed green while the official build was broken. No other file references the `Publish-Build-Assets` variable group, so the conditional is removed entirely rather than repopulated. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- eng/pipelines/common/variables.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/eng/pipelines/common/variables.yml b/eng/pipelines/common/variables.yml index 1c94974c5495..33762aeded9c 100644 --- a/eng/pipelines/common/variables.yml +++ b/eng/pipelines/common/variables.yml @@ -78,6 +78,3 @@ variables: - group: DotNet-HelixApi-Access - group: SDL_Settings - group: AzureDevOps-Artifact-Feeds-Pats - - ${{ if eq(variables['Build.DefinitionName'], 'dotnet-maui') }}: - -