From 8debe65503793ea5e42d3bbed61e756468d76298 Mon Sep 17 00:00:00 2001 From: Milos Kotlar Date: Mon, 16 Feb 2026 16:34:07 +0100 Subject: [PATCH 1/2] Update post-build condition to exclude scheduled builds --- azure-pipelines.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c7e133715..639a6f384 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -77,7 +77,8 @@ extends: path: '$(Build.SourcesDirectory)\artifacts\bin\Microsoft.DotNet.XHarness.CLI' displayName: 'Publish Windows_NT Artifacts' condition: succeeded() - - template: /eng/common/templates-official/post-build/post-build.yml@self - parameters: - enableSymbolValidation: true - enableSourceLinkValidation: true + - ${{ if ne(variables['Build.Reason'], 'Schedule') }}: + - template: /eng/common/templates-official/post-build/post-build.yml@self + parameters: + enableSymbolValidation: true + enableSourceLinkValidation: true From 2c1e970a01ae6c73580cf68606577841d5c1768b Mon Sep 17 00:00:00 2001 From: Milos Kotlar Date: Mon, 16 Feb 2026 16:35:03 +0100 Subject: [PATCH 2/2] Update post-build condition to enable asset publishing only for non-scheduled builds --- azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 639a6f384..1c6980575 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -57,7 +57,8 @@ extends: enablePublishBuildArtifacts: true enableMicrobuild: true enablePublishUsingPipelines: true - enablePublishBuildAssets: true + ${{ if ne(variables['Build.Reason'], 'Schedule') }}: + enablePublishBuildAssets: true helixRepo: dotnet/xharness jobs: - job: Windows_NT