Skip to content

Commit 91e7e42

Browse files
committed
Ensure build uses latest JDK
Signed-off-by: Fred Bricon <[email protected]>
1 parent 5c01423 commit 91e7e42

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Jenkinsfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ def buildVscodeExtension(){
1414

1515
node('rhel7'){
1616
stage 'Build JDT LS'
17+
18+
env.JAVA_HOME="${tool 'openjdk-1.8'}"
19+
env.PATH="${env.JAVA_HOME}/bin:${env.PATH}"
20+
sh 'java -version'
21+
1722
git url: 'https://github.com/eclipse/eclipse.jdt.ls.git'
1823
sh "./mvnw clean verify -B -U -e -Pserver-distro -Dtycho.disableP2Mirrors=true -P!jboss-maven-repos,!redhat-ga-repository,!redhat-ea-repository"
1924

0 commit comments

Comments
 (0)