@@ -98,10 +98,11 @@ extends:
9898 name : $(DncEngInternalBuildPool)
9999 image : windows.vs2022.amd64
100100 os : windows
101- helixTargetQueue : windows.amd64.vs2022 .pre
101+ helixTargetQueue : windows.amd64.vs2026 .pre.scout
102102 oneESCompat :
103103 templateFolderName : templates-official
104104 publishTaskPrefix : 1ES.
105+ populateInternalRuntimeVariables : true
105106 runtimeSourceProperties : /p:DotNetRuntimeSourceFeed=https://ci.dot.net/internal /p:DotNetRuntimeSourceFeedKey=$(dotnetbuilds-internal-container-read-token-base64)
106107 locBranch : release/10.0.1xx
107108 # WORKAROUND: BinSkim requires the folder exist prior to scanning.
@@ -141,6 +142,14 @@ extends:
141142 _SignType : real
142143 dependsOn : Official_windows_x64
143144 downloadManifestMsiPackages : true
145+ # ## TestTemplatesCG ###
146+ # Note: This job is only used to allow the test templates to be built locally on the agent as opposed to Helix.
147+ # The tests acquire the templates' PackageReferences from NuGet, which allows them to be scanned by CG (component governance).
148+ # CG is only ran internally, so this job makes sense to only run alongside of the official jobs.
149+ - categoryName : TestTemplatesCG
150+ testProjects : $(Build.SourcesDirectory)/test/dotnet-new.IntegrationTests/dotnet-new.IntegrationTests.csproj
151+ testRunnerAdditionalArguments : -class Microsoft.DotNet.Cli.New.IntegrationTests.DotnetNewTestTemplatesTests
152+ publishXunitResults : true
144153
145154 # ############## LINUX ###############
146155 - template : /eng/pipelines/templates/jobs/sdk-job-matrix.yml@self
@@ -153,6 +162,7 @@ extends:
153162 oneESCompat :
154163 templateFolderName : templates-official
155164 publishTaskPrefix : 1ES.
165+ populateInternalRuntimeVariables : true
156166 runtimeSourceProperties : /p:DotNetRuntimeSourceFeed=https://ci.dot.net/internal /p:DotNetRuntimeSourceFeedKey=$(dotnetbuilds-internal-container-read-token-base64)
157167 ${{ if and(eq(parameters.runTestBuild, false), ne(variables['Build.Reason'], 'PullRequest')) }} :
158168 timeoutInMinutes : 90
@@ -235,6 +245,7 @@ extends:
235245 oneESCompat :
236246 templateFolderName : templates-official
237247 publishTaskPrefix : 1ES.
248+ populateInternalRuntimeVariables : true
238249 runtimeSourceProperties : /p:DotNetRuntimeSourceFeed=https://ci.dot.net/internal /p:DotNetRuntimeSourceFeedKey=$(dotnetbuilds-internal-container-read-token-base64)
239250 ${{ if and(eq(parameters.runTestBuild, false), ne(variables['Build.Reason'], 'PullRequest')) }} :
240251 timeoutInMinutes : 90
@@ -260,6 +271,8 @@ extends:
260271 vmImage : macOS-latest
261272 os : macOS
262273 helixTargetQueue : osx.13.arm64
274+ populateInternalRuntimeVariables : true
275+ runtimeSourceProperties : /p:DotNetRuntimeSourceFeed=https://ci.dot.net/internal /p:DotNetRuntimeSourceFeedKey=$(dotnetbuilds-internal-container-read-token-base64)
263276 macOSJobParameterSets :
264277 - categoryName : TestBuild
265278 targetArchitecture : arm64
@@ -270,7 +283,9 @@ extends:
270283 - template : /eng/dotnet-format/dotnet-format-integration.yml@self
271284 parameters :
272285 oneESCompat :
286+ templateFolderName : templates-official
273287 publishTaskPrefix : 1ES.
288+ populateInternalRuntimeVariables : true
274289 runtimeSourceProperties : /p:DotNetRuntimeSourceFeed=https://ci.dot.net/internal /p:DotNetRuntimeSourceFeedKey=$(dotnetbuilds-internal-container-read-token-base64)
275290
276291 # ############## PUBLISH STAGE ###############
0 commit comments