Skip to content

Commit 981f6b6

Browse files
committed
[I/Y-Build] Implement workaround to fix tools download on Windows agents
Fixes the failure of the Windows Y-build tests - #3516 Relates to - https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/6781#note_5338526
1 parent ada4c32 commit 981f6b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

JenkinsJobs/shared/utilities.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def downloadTemurinJDK(int version, String os, String arch, String releaseType='
127127

128128
def installDownloadableTool(String toolType, String url) {
129129
dir("${WORKSPACE}/tools/${toolType}") {
130-
def scriptText = "curl --fail --location ${url} | tar -xzf -"
130+
def scriptText = "curl --fail --location ${url} | ${ isUnix() ? 'tar' : 'C:\\Windows\\System32\\tar.exe'} -xzf -"
131131
if (isUnix()) {
132132
sh scriptText
133133
} else { // Windows 10 and later has a tar.exe that can handle zip files (even read from std-in)

0 commit comments

Comments
 (0)