From 9b642accf4216a9468913c97b24214e125944fb6 Mon Sep 17 00:00:00 2001 From: steadfasterX Date: Wed, 24 Aug 2022 10:25:45 +0000 Subject: [PATCH] linux: fix jlink error in build during CI/CD ~~~ Task :jlink FAILED Error: Hash of java.xml (4b805321762bc6762fabcde937d39fbc32cbfb19ab44bcf5cd6dd69a83960a9e) differs to expected hash (91ebb0c25713aacebb2071a372e7a358ef31f69f265094464d3e2e81dcce553a) recorded in java.base FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':jlink'. > Process 'command '/usr/lib/jvm/java-11-openjdk-amd64/bin/jlink'' finished with non-zero exit value 1 ~~~ --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7ffd1890..cae8b83d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -75,6 +75,7 @@ build-linux-x64: variables: GIT_SUBMODULE_STRATEGY: recursive script: + - export JAVA_HOME=$(pwd)/buildSrc/linux/jdk-11.0.2/ - ./gradlew dist artifacts: name: "easy-installer-$CI_COMMIT_TAG-linux_x64" -- GitLab