Console Output

Started by GitHub push by DV8FromTheWorld
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 403d129f68c45f624a9541c16eb976b2adee4071 (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 403d129f68c45f624a9541c16eb976b2adee4071 # timeout=10
Commit message: "Remove confusing permission override methods (#2067)"
 > git rev-list --no-walk f4f31b679bf36f88670f8c9df9252103e353985c # 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