Started by an SCM change [Pipeline] Start of Pipeline [Pipeline] node Running on Jenkins in /var/lib/jenkins/workspace/ATS [Pipeline] { [Pipeline] tool [Pipeline] stage [Pipeline] { (git clone) [Pipeline] git Selected Git installation does not exist. Using Default The recommended git tool is: NONE No credentials specified > git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/ATS/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:appNG/appng-tomcat-session.git # timeout=10 Fetching upstream changes from git@github.com:appNG/appng-tomcat-session.git > git --version # timeout=10 > git --version # 'git version 2.30.2' > git fetch --tags --force --progress -- git@github.com:appNG/appng-tomcat-session.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 Checking out Revision 0123764c40c318a6b804301f152685c6106557d6 (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f 0123764c40c318a6b804301f152685c6106557d6 # timeout=10 > git branch -a -v --no-abbrev # timeout=10 > git branch -D master # timeout=10 > git checkout -b master 0123764c40c318a6b804301f152685c6106557d6 # timeout=10 Commit message: "ATS-35" > git rev-list --no-walk 14ad1c64f8346e9871c9d45ae4d26f98403c6c10 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Maven Build) [Pipeline] sh + /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.6.3/bin/mvn clean deploy The JAVA_HOME environment variable is not defined correctly, this environment variable is needed to run this program. [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline ERROR: script returned exit code 1 Finished: FAILURE