Skip to content

Commit bafd661

Browse files
committed
Add Java 26ea run on Windows
1 parent c544036 commit bafd661

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

eng/pipelines/templates/jobs/ci.tests.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,21 @@ jobs:
123123
parameters:
124124
LatestJdkFeatureVersion: $(LatestNonLtsJdkFeatureVersion)
125125

126+
- pwsh: |
127+
$downloadUri = "https://download.java.net/java/early_access/jdk26/28/GPL/openjdk-26-ea+28_windows-x64_bin.zip"
128+
$jdkZipName = "windows_java26_ea.zip"
129+
$jdkUnzipName = "jdk-26"
130+
131+
Invoke-WebRequest -URI $downloadUri -OutFile $jdkZipName
132+
Expand-Archive -Path $jdkZipName -Destination "jdk-temp"
133+
Move-Item -Path (Join-Path -Path "jdk-temp" -ChildPath (Get-ChildItem "jdk-temp")[0].Name) -Destination $jdkUnzipName
134+
$javaHome = (Convert-Path $jdkUnzipName)
135+
136+
Write-Host "##vso[task.setvariable variable=JAVA_HOME;]$javaHome"
137+
Write-Host "##vso[task.setvariable variable=JAVA_HOME_26_X64;]$javaHome"
138+
displayName: Test Java 26 ea on Windows
139+
condition: and(eq(variables['JavaTestVersion'], '1.26'), eq(variables['Agent.OS'], 'Windows'))
140+
126141
- ${{ parameters.PreBuildSteps }}
127142

128143
- ${{ parameters.PreTestSteps }}

eng/pipelines/templates/stages/platform-matrix.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,21 @@
133133
"TestGoals": "surefire:test failsafe:integration-test failsafe:verify"
134134
}
135135
}
136+
},
137+
{
138+
"Agent": {
139+
"windows-2022": { "OSVmImage": "env:WINDOWSVMIMAGE", "Pool": "env:WINDOWSPOOL" }
140+
},
141+
"JavaTestVersion": "1.26",
142+
"AZURE_TEST_HTTP_CLIENTS": "netty",
143+
"Options": {
144+
"NotFromSource_TestsOnly": {
145+
"TestFromSource": false,
146+
"RunAggregateReports": false,
147+
"TestOptions": "",
148+
"TestGoals": "surefire:test failsafe:integration-test failsafe:verify"
149+
}
150+
}
136151
}
137152
]
138153
}

0 commit comments

Comments
 (0)