Started by GitHub push by DV8FromTheWorld Running as SYSTEM Building in workspace /var/jenkins_home/workspace/JDA5 The recommended git tool is: NONE No credentials specified > git rev-parse --resolve-git-dir /var/jenkins_home/workspace/JDA5/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/DV8FromTheWorld/JDA.git # timeout=10 Fetching upstream changes from https://github.com/DV8FromTheWorld/JDA.git > git --version # timeout=10 > git --version # 'git version 2.30.2' > git fetch --tags --force --progress -- https://github.com/DV8FromTheWorld/JDA.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 Checking out Revision a5abff4f92c90d19d636f41d54740578b199193e (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f a5abff4f92c90d19d636f41d54740578b199193e # timeout=10 Commit message: "Use GitHub issue forms (#1546)" > git rev-list --no-walk 403d129f68c45f624a9541c16eb976b2adee4071 # timeout=10 [Gradle] - Launching build. [JDA5] $ /var/jenkins_home/workspace/JDA5/gradlew clean release ERROR: JAVA_HOME is set to an invalid directory: /var/jdk-17.0.1+12 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 Publishing Javadoc Finished: FAILURE