Skip to content

Commit 187a659

Browse files
committed
Use this century's TLS on Windows
1 parent 1fb6cc8 commit 187a659

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jenkins/build_java.gy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ mkdir -p "${ARTIFACTS_DIR}"
260260
// Install Java 17 on Windows Build Agent
261261
powershell '''
262262
Write-Host "======== Windows: Install Java 17"
263+
[Net.ServicePointManager]::SecurityProtocol = "Tls12, Ssl3"
263264
Invoke-Webrequest -Uri "$env:CBDEP_URL" -Outfile "cbdep.exe"
264265
.\\cbdep.exe install -d $env:WORKSPACE openjdk 17.0.7+7
265266
'''
@@ -523,9 +524,10 @@ mkdir -p "${REPORTS_DIR}"
523524
// Clean the workspace
524525
cleanWs(deleteDirs: true, disableDeferredWipeout: true)
525526

526-
// Install Java 17 on Windows Test Agent
527+
// Install Java 17 on Windows Test Agent
527528
powershell '''
528529
Write-Host "======== Windows: Install Java 17"
530+
[Net.ServicePointManager]::SecurityProtocol = "Tls12, Ssl3"
529531
Invoke-Webrequest -Uri "$env:CBDEP_URL" -Outfile "cbdep.exe"
530532
.\\cbdep.exe install -d $env:WORKSPACE openjdk 17.0.7+7
531533
'''

0 commit comments

Comments
 (0)