From 6794097f9f53edfa96b7a738564f3b4811511fe9 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Tue, 18 Aug 2026 12:03:13 -0500 Subject: [PATCH] [ci] Apply CFSClean environment settings Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0905f149-3491-4406-b7a0-7b5ad55786e8 --- build/ci/build-and-test.yml | 1 - build/ci/variables.yml | 6 ++++++ tests/allpackages/TestAllIndividualPackages.cs | 2 +- tests/extended/TestAllIndividualPackages.cs | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/build/ci/build-and-test.yml b/build/ci/build-and-test.yml index 1ffb900c1..731097489 100644 --- a/build/ci/build-and-test.yml +++ b/build/ci/build-and-test.yml @@ -16,7 +16,6 @@ steps: displayName: 'Build packages' env: JavaSdkDirectory: $(JAVA_HOME) - RUNNINGONCI: true RepositoryCommit: $(Build.SourceVersion) RepositoryBranch: $(Build.SourceBranchName) RepositoryUrl: $(Build.Repository.Uri) diff --git a/build/ci/variables.yml b/build/ci/variables.yml index d63f5d1fc..1af84e4bd 100644 --- a/build/ci/variables.yml +++ b/build/ci/variables.yml @@ -7,6 +7,12 @@ variables: mainBranchName: main # Name of Git "main" branch configuration: Release # Build configuration: 'Debug', 'Release' verbosity: 'normal' # Build verbosity: 'minimal', 'normal', 'diagnostic' + DOTNET_SYSTEM_NET_SECURITY_NOREVOCATIONCHECKBYDEFAULT: true + DOTNET_CLI_WORKLOAD_UPDATE_NOTIFY_DISABLE: true + DOTNET_SDK_VULNERABILITY_CHECK_DISABLE: true + NuGetAudit: false + DOTNET_CLI_TELEMETRY_OPTOUT: true + RUNNINGONCI: true # Reporting variables areaPath: DevDiv\VS Client - Runtime SDKs\Android # AzDo area path to log any issues diff --git a/tests/allpackages/TestAllIndividualPackages.cs b/tests/allpackages/TestAllIndividualPackages.cs index d3452e7b8..e30dfc998 100644 --- a/tests/allpackages/TestAllIndividualPackages.cs +++ b/tests/allpackages/TestAllIndividualPackages.cs @@ -167,7 +167,7 @@ async Task TestAllPackages (string template, bool isGps) Directory.CreateDirectory (case_dir); // Create new dotnet project - await RunAndAssertSuccess ($"new {template}", case_dir); + await RunAndAssertSuccess ($"new {template} --no-restore", case_dir); // - Replace with the maximum version some packages require // - Remove the target frameworks that are not 'android' diff --git a/tests/extended/TestAllIndividualPackages.cs b/tests/extended/TestAllIndividualPackages.cs index daa8e6d40..f0fdcaf8a 100644 --- a/tests/extended/TestAllIndividualPackages.cs +++ b/tests/extended/TestAllIndividualPackages.cs @@ -87,7 +87,7 @@ async Task TestPackage (string id, string version, string template) Directory.CreateDirectory (case_dir); // Create new dotnet project - await RunAndAssertSuccess ($"new {template}", case_dir); + await RunAndAssertSuccess ($"new {template} --no-restore", case_dir); // - Replace with the maximum version some packages require // - Remove the target frameworks that are not 'android'