From e1f582476883fa5a44eabdcdb31f73260371fe0c Mon Sep 17 00:00:00 2001 From: Michael Yanni Date: Wed, 14 Jan 2026 15:23:51 -0800 Subject: [PATCH] Allowed for the pipeline to run in both official and unofficial. --- azure-pipelines.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e0a39a94361..11bd7c8e37f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -45,7 +45,7 @@ parameters: - buildConfig: Release extends: - ${{ if ne(variables['Build.Reason'], 'PullRequest') }}: + ${{ if and(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.DefinitionName'], 'templating-official-ci')) }}: template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines ${{ else }}: template: v1/1ES.Unofficial.PipelineTemplate.yml@1esPipelines @@ -87,6 +87,8 @@ extends: enableInternalSources: true enableTelemetry: true helixRepo: dotnet/templating + ${{ if ne(variables['Build.DefinitionName'], 'templating-official-ci') }}: + microbuildUseESRP: false templateContext: sdl: binskim: @@ -107,7 +109,7 @@ extends: variables: - _BuildConfig: ${{ config.buildConfig }} - _SignType: test - - ${{ if notin(variables['Build.Reason'], 'PullRequest') }}: + - ${{ if and(notin(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.DefinitionName'], 'templating-official-ci')) }}: - _SignType: real - _InternalBuildArgs: '' # Only enable publishing in non-public, non PR scenarios.