Started by user GermanCoding Running as SYSTEM Building in workspace /var/jenkins_home/workspace/HelloWorld The recommended git tool is: NONE No credentials specified > git rev-parse --resolve-git-dir /var/jenkins_home/workspace/HelloWorld/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/drlehr/Java_Gradle_Hello_World.git # timeout=10 Fetching upstream changes from https://github.com/drlehr/Java_Gradle_Hello_World.git > git --version # timeout=10 > git --version # 'git version 2.30.2' > git fetch --tags --force --progress -- https://github.com/drlehr/Java_Gradle_Hello_World.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 Checking out Revision db030e9d7c07080fe3f3925dbb11457e55adf240 (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f db030e9d7c07080fe3f3925dbb11457e55adf240 # timeout=10 Commit message: "Update HelloWorld.java" > git rev-list --no-walk db030e9d7c07080fe3f3925dbb11457e55adf240 # timeout=10 [Gradle] - Launching build. Unpacking https://services.gradle.org/distributions/gradle-7.3-bin.zip to /var/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/Gradle-7.3 on Jenkins [HelloWorld] $ /var/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/Gradle-7.3/bin/gradle dist ERROR: JAVA_HOME is set to an invalid directory: /var/jenkins_home/tools/hudson.model.JDK/OpenJDK_11.0.13/jdk-11 Please set the JAVA_HOME variable in your environment to match the location of your Java installation. Build step 'Invoke Gradle script' changed build result to FAILURE Build step 'Invoke Gradle script' marked build as failure Archiving artifacts Finished: FAILURE