Skip to content

Commit

Permalink
Temporary commit to try with hardcoded BuildTools location
Browse files Browse the repository at this point in the history
Signed-off-by: David Thompson <[email protected]>
  • Loading branch information
datho7561 committed Jan 14, 2021
1 parent 97bfaa4 commit f7f3cc5
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions NativeImage.jenkins
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,13 @@ pipeline {
}
"""
powershell """
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Push-Location
Install-PackageProvider -Name NuGet -RequiredVersion 2.8.5.201 -Force
Install-Module VSSetup -Scope CurrentUser -Force
\$vs = Get-VSSetupInstance
if (\$vs -is [array]) {
\$vs_loc = (\$vs[0]).InstallationPath
\$vs_id = (\$vs[0]).InstanceId
} else {
\$vs_loc = (\$vs[0]).InstallationPath
\$vs_id = (\$vs[0]).InstanceId
}
Import-Module "\$vs_loc\\Common7\\Tools\\Microsoft.VisualStudio.DevShell.dll"
Enter-VsDevShell "\$vs_id" -DevCmdArguments "/arch=amd64"
Pop-Location
\$Env:JAVA_HOME = \"\$(Get-Location)\\graalvm-windows-${params.GRAALVM_VERSION}\\graalvm-ce-java11-${params.GRAALVM_VERSION}\"
Push-Location
"""
bat """
pushd .
call "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\vcvarsall.bat" x86_amd64
popd
cd lemminx
.\\mvnw.cmd clean package -Dnative -DskipTests
cd ..
Expand Down

0 comments on commit f7f3cc5

Please sign in to comment.