@@ -123,7 +123,7 @@ stages:
123
123
- template : /build-tools/automation/yaml-templates/setup-test-environment.yaml
124
124
parameters :
125
125
xaprepareScenario : EmulatorTestDependencies
126
- jdkTestFolder : $(JAVA_HOME_11_X64)
126
+ jdkMajorVersion : 11
127
127
128
128
- template : /build-tools/automation/yaml-templates/run-dotnet-preview.yaml
129
129
parameters :
@@ -138,6 +138,7 @@ stages:
138
138
avdApiLevel : $(avdApiLevel)
139
139
avdAbi : $(avdAbi)
140
140
avdType : $(avdType)
141
+ emulatorMSBuildArgs : -p:JavaSdkDirectory=$(JI_JAVA_HOME_DEFAULT)
141
142
142
143
- template : /build-tools/automation/yaml-templates/apk-instrumentation.yaml
143
144
parameters :
@@ -162,7 +163,6 @@ stages:
162
163
emulatorMSBuildArgs : -p:TestAvdExtraBootArgs=-writable-system
163
164
jobName : SystemApplicationTests
164
165
jobTimeout : 120
165
- jdkTestFolder : $HOME/android-toolchain/jdk-17
166
166
use1ESTemplate : false
167
167
testSteps :
168
168
- template : run-nunit-tests.yaml
@@ -195,15 +195,11 @@ stages:
195
195
steps :
196
196
- template : agent-cleanser/v1.yml@yaml-templates
197
197
198
- - script : |
199
- echo "##vso[task.setvariable variable=JAVA_HOME]$HOME/android-toolchain/jdk-17"
200
- displayName: set JAVA_HOME to $HOME/android-toolchain/jdk-17
201
-
202
198
- template : /build-tools/automation/yaml-templates/setup-test-environment.yaml
203
199
parameters :
204
200
installTestSlicer : true
205
201
xaprepareScenario : EmulatorTestDependencies
206
- jdkTestFolder : $HOME/android-toolchain/jdk-17
202
+ useAgentJdkPath : false
207
203
208
204
- task : DownloadPipelineArtifact@2
209
205
inputs :
@@ -251,15 +247,11 @@ stages:
251
247
steps :
252
248
- template : agent-cleanser/v1.yml@yaml-templates
253
249
254
- - script : |
255
- echo "##vso[task.setvariable variable=JAVA_HOME]$HOME/android-toolchain/jdk-17"
256
- displayName: set JAVA_HOME to $HOME/android-toolchain/jdk-17
257
-
258
250
- template : /build-tools/automation/yaml-templates/setup-test-environment.yaml
259
251
parameters :
260
252
installTestSlicer : true
261
253
xaprepareScenario : EmulatorTestDependencies
262
- jdkTestFolder : $HOME/android-toolchain/jdk-17
254
+ useAgentJdkPath : false
263
255
264
256
- task : DownloadPipelineArtifact@2
265
257
inputs :
0 commit comments