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 f4f31b679bf36f88670f8c9df9252103e353985c (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f f4f31b679bf36f88670f8c9df9252103e353985c # timeout=10 Commit message: "Fix NewsChannel#getManager always returning null (#2107)" > git rev-list --no-walk 5492a76bceb85ba42c3c2c75f5aa84ab73a92f61 # 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