From 4691472487aa7ca07a4e136425183fecaf543eea Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Wed, 28 Jan 2026 10:23:50 -0600 Subject: [PATCH] [build] use `MicroBuild.1ES.Official` based on pipeline name Context: https://github.com/dotnet/android/pull/10736 The `AndroidX` production pipeline *must* always use the `MicroBuild.1ES.Official` template. It would fail/warn otherwise if running on pull requests. Update the yaml condition to behave this way, which will allow us to test changes on pull requests. --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index db0827644..b66114a99 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -33,7 +33,7 @@ resources: ref: refs/heads/main extends: - ${{ if and(startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'), not(eq(variables['Build.Reason'], 'PullRequest'))) }}: + ${{ if eq(variables['Build.DefinitionName'], 'AndroidX') }}: template: azure-pipelines/MicroBuild.1ES.Official.yml@1esPipelines ${{ else }}: template: azure-pipelines/MicroBuild.1ES.Unofficial.yml@1esPipelines