From 4867988f072e43cd477e3e80e8477a0405569b21 Mon Sep 17 00:00:00 2001 From: "Matt Mitchell (.NET)" Date: Wed, 21 May 2025 17:11:26 -0700 Subject: [PATCH 1/2] Switch to assetless build - Publish assets in parallel - Switch the build to a test build by default to get CI results. --- .vsts-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.vsts-ci.yml b/.vsts-ci.yml index bdfbdeda98cf..916a193586e8 100644 --- a/.vsts-ci.yml +++ b/.vsts-ci.yml @@ -21,7 +21,7 @@ parameters: - name: runTestBuild displayName: Run A Test Build type: boolean - default: false + default: true - name: enableArm64Job displayName: Enables the ARM64 job type: boolean @@ -293,12 +293,13 @@ extends: - ${{ if and(eq(parameters.runTestBuild, false), ne(variables['Build.Reason'], 'PullRequest')) }}: - stage: publish displayName: Publish - dependsOn: build + dependsOn: [] jobs: - template: /eng/common/templates-official/job/publish-build-assets.yml@self parameters: publishUsingPipelines: true publishAssetsImmediately: true + isAssetlessBuild: true pool: name: $(DncEngInternalBuildPool) image: 1es-windows-2022 From cde757263825fe266ab85ea4084ca8cb95f4f9c7 Mon Sep 17 00:00:00 2001 From: Matt Mitchell Date: Thu, 22 May 2025 08:08:54 -0700 Subject: [PATCH 2/2] Run publish stage when doing assetless builds + test build (#49111) (cherry picked from commit f0f4817f3cfac3e97e80e9ee29c3a15f44d620d3) --- .vsts-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vsts-ci.yml b/.vsts-ci.yml index 916a193586e8..638282e1ad8b 100644 --- a/.vsts-ci.yml +++ b/.vsts-ci.yml @@ -290,7 +290,7 @@ extends: runtimeSourceProperties: /p:DotNetRuntimeSourceFeed=https://ci.dot.net/internal /p:DotNetRuntimeSourceFeedKey=$(dotnetbuilds-internal-container-read-token-base64) ############### PUBLISH STAGE ############### - - ${{ if and(eq(parameters.runTestBuild, false), ne(variables['Build.Reason'], 'PullRequest')) }}: + - ${{ if ne(variables['Build.Reason'], 'PullRequest') }}: - stage: publish displayName: Publish dependsOn: []