Skip to content

Commit 1d87692

Browse files
rgrunberdatho7561
authored andcommitted
Fix native image build on Windows builders.
- Use git-clone over 'ssh' instead of 'https' - Remove unnecessary setting of TLS for git-clone operation Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
1 parent d5973bd commit 1d87692

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

NativeImage.jenkins

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ pipeline {
3838
label "win10"
3939
}
4040
steps {
41-
powershell "if (Test-Path lemminx-win32.exe) { Remove-Item lemminx-win32.exe }"
42-
powershell "Remove-Item -Recurse -Force lemminx"
41+
powershell """
42+
if (Test-Path lemminx-win32.exe) { Remove-Item lemminx-win32.exe }
43+
Remove-Item -Recurse -Force lemminx
44+
"""
4345
script {
4446
if (publishToMarketPlace.equals('true')) {
4547
powershell """
@@ -49,13 +51,11 @@ pipeline {
4951
def packageJson = readJSON file: 'package.json'
5052
def lemminxVersion = packageJson?.xmlServer?.version
5153
powershell """
52-
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
53-
git clone -b ${lemminxVersion} https://github.com/eclipse/lemminx.git
54+
git clone -b ${lemminxVersion} git@github.com:eclipse/lemminx.git
5455
"""
5556
} else {
5657
powershell """
57-
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
58-
git clone https://github.com/eclipse/lemminx.git
58+
git clone git@github.com:eclipse/lemminx.git
5959
"""
6060
}
6161
}

0 commit comments

Comments
 (0)