@@ -12,7 +12,9 @@ parameters:
1212 testProjects : $(Build.SourcesDirectory)/test/UnitTests.proj
1313 publishRetryConfig : false
1414 publishXunitResults : false
15+ testRunnerAdditionalArguments : ' '
1516 enableSbom : true
17+ populateInternalRuntimeVariables : false
1618 timeoutInMinutes : 150
1719 # ## ENV VARS ###
1820 testFullMSBuild : false
@@ -71,11 +73,11 @@ jobs:
7173 targetPath : $(Build.SourcesDirectory)/eng/BuildConfiguration
7274 artifactName : BuildConfiguration
7375
74- # Populate internal runtime variables.
75- - template : /eng/common/templates /steps/enable-internal-sources.yml
76- parameters :
77- legacyCredential : $(dn-bot-dnceng-artifact-feeds-rw)
78- - template : /eng/common/templates /steps/enable-internal-runtimes.yml
76+ - ${{ if eq(parameters.populateInternalRuntimeVariables, true) }} :
77+ - template : /eng/common/${{ parameters.oneESCompat.templateFolderName }} /steps/enable-internal-sources.yml
78+ parameters :
79+ legacyCredential : $(dn-bot-dnceng-artifact-feeds-rw)
80+ - template : /eng/common/${{ parameters.oneESCompat.templateFolderName }} /steps/enable-internal-runtimes.yml
7981
8082 - ${{ if eq(parameters.downloadManifestMsiPackages, true) }} :
8183 - task : DownloadBuildArtifacts@1
8486 downloadPath : $(Build.SourcesDirectory)/artifacts/downloaded-manifest-msi-packages
8587 itemPattern : ' **/*Manifest-*.Msi.*.nupkg'
8688 checkDownloadedFiles : true
87- displayName : Download Manifest msi packages
89+ displayName : 🟣 Download Manifest MSI Packages
8890
8991 # ############## BUILDING ###############
9092 - ${{ if eq(parameters.pool.os, 'windows') }} :
@@ -131,30 +133,20 @@ jobs:
131133 OPENSSL_ENABLE_SHA1_SIGNATURES: 1
132134
133135 # ############## TESTING ###############
134- - ${{ if eq(parameters.pool.os, 'windows') }} :
135- - ${{ if eq(parameters.targetArchitecture, 'x64') }} :
136- - powershell : eng/common/build.ps1
137- -restore -test -ci -prepareMachine -nativeToolsOnMachine
138- -configuration $(buildConfiguration)
139- /p:Projects="$(Build.SourcesDirectory)/test/dotnet-new.IntegrationTests/dotnet-new.IntegrationTests.csproj"
140- /p:TestRunnerAdditionalArguments="-class Microsoft.DotNet.Cli.New.IntegrationTests.DotnetNewTestTemplatesTests"
141- ${{ parameters.runtimeSourceProperties }}
142- /bl:$(Build.SourcesDirectory)/artifacts/log/$(buildConfiguration)/TestTemplateTests.binlog
143- displayName : 🟣 Run Test Templates Tests
144- condition : succeeded()
145-
146136 - ${{ if eq(parameters.runTests, true) }} :
147137 - ${{ if eq(parameters.runAoTTests, true) }} :
148138 # For the reason this is here, see: https://github.com/dotnet/sdk/issues/22655
149139 - script : $(Build.SourcesDirectory)/artifacts/bin/redist/$(buildConfiguration)/dotnet/dotnet workload install wasm-tools --skip-manifest-update
150140 workingDirectory : $(Build.SourcesDirectory)/artifacts/bin
151141 displayName : 🟣 Install wasm-tools Workload
142+
152143 # For the /p:Projects syntax for PowerShell, see: https://github.com/dotnet/msbuild/issues/471#issuecomment-1146466335
153144 - ${{ if eq(parameters.pool.os, 'windows') }} :
154145 - powershell : eng/common/build.ps1
155146 -restore -test -ci -prepareMachine -nativeToolsOnMachine
156147 -configuration $(buildConfiguration)
157148 /p:Projects=\`"${{ replace(parameters.testProjects, ';', '`;') }}\`"
149+ /p:TestRunnerAdditionalArguments="${{ parameters.testRunnerAdditionalArguments }}"
158150 /p:TargetArchitecture=${{ parameters.targetArchitecture }}
159151 ${{ parameters.runtimeSourceProperties }}
160152 /p:CustomHelixTargetQueue=${{ parameters.helixTargetQueue }}
@@ -167,6 +159,7 @@ jobs:
167159 HelixAccessToken : $(HelixApiAccessToken)
168160 RunAoTTests : ${{ parameters.runAoTTests }}
169161 TestFullMSBuild : ${{ parameters.testFullMSBuild }}
162+
170163 - ${{ else }} :
171164 # For the /p:Projects syntax for Bash, see: https://github.com/dotnet/msbuild/issues/471#issuecomment-1690189034
172165 # The /p:CustomHelixTargetQueue syntax is: <queue-name>@<container-url>
@@ -175,6 +168,7 @@ jobs:
175168 -restore -test -ci -prepareMachine
176169 -configuration $(buildConfiguration)
177170 ' /p:Projects="${{ parameters.testProjects }}"'
171+ /p:TestRunnerAdditionalArguments="${{ parameters.testRunnerAdditionalArguments }}"
178172 /p:TargetArchitecture=${{ parameters.targetArchitecture }}
179173 /p:TargetRid=${{ parameters.runtimeIdentifier }}
180174 ${{ parameters.osProperties }}
0 commit comments