-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add native-image build in Jenkinsfile
Builds and archives a binary version of the server, as well as its sha256 hash. Only for Windows and Linux as of right now. Signed-off-by: David Thompson <[email protected]>
- Loading branch information
Showing
2 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
pipeline { | ||
agent{ | ||
none | ||
} | ||
stages { | ||
stage("native-image") { | ||
parallel { | ||
stage("Linux native-image") { | ||
agent { | ||
docker "oracle/graalvm-ce:latest" | ||
} | ||
environment { | ||
MAVEN_HOME = "$WORKSPACE/.m2/" | ||
MAVEN_USER_HOME = "$MAVEN_HOME" | ||
} | ||
steps { | ||
sh "./mvnw package -Pnative -DskipTests" | ||
archiveArtifacts artifacts: 'org.eclipse.lemminx/target/lemminx-linux*', fingerprint: true | ||
sh "sha256sum org.eclipse.lemminx/target/lemminx-linux* > lemminx-linux-hash" | ||
archiveArtifacts artifacts: 'lemminx-linux-hash', fingerprint: false | ||
} | ||
} | ||
/*stage("Windows native-image") { | ||
agent { | ||
label "windows" | ||
} | ||
steps { | ||
powershell "Invoke-WebRequest https:/graalvm/graalvm-ce-builds/releases/download/vm-20.2.0/graalvm-ce-java11-windows-amd64-20.2.0.zip -OutFile graalvm-windows.zip" | ||
powershell "Expand-Archive graalvm-windows.zip" | ||
powershell ".\\graalvm-windows\\graalvm-ce-java11-20.2.0\\bin\\gu install native-image" | ||
bat "set JAVA_HOME=%WORKSPACE%\\graalvm-windows\\graalvm-ce-java11-20.2.0&& echo %JAVA_HOME% && \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat\" && .\\mvnw.cmd package -Pnative -DskipTests" | ||
archiveArtifacts artifacts: 'org.eclipse.lemminx/target/*.exe', fingerprint: true | ||
powershell "Get-FileHash org.eclipse.lemminx\\target\\*.exe | Select -ExpandProperty Hash > lemminx-windows-hash" | ||
archiveArtifacts artifacts: 'lemminx-windows-hash', fingerprint: false | ||
} | ||
}*/ | ||
} | ||
} | ||
} | ||
} | ||
|