Started by user unknown or anonymous Running as SYSTEM Building in workspace /data/jenkins/workspace/test-v5in-bcxinurilfileutil The recommended git tool is: NONE using credential e9f27bcd-2741-48e3-b693-e66c2b7b3499 > /usr/local/git/bin/git rev-parse --resolve-git-dir /data/jenkins/workspace/test-v5in-bcxinurilfileutil/.git # timeout=10 Fetching changes from the remote Git repository > /usr/local/git/bin/git config remote.origin.url https://gitlab.arsbaibaodun.com/bcx_basic/bcxinurilfileutil.git # timeout=10 Fetching upstream changes from https://gitlab.arsbaibaodun.com/bcx_basic/bcxinurilfileutil.git > /usr/local/git/bin/git --version # timeout=10 > git --version # 'git version 2.43.0' using GIT_ASKPASS to set credentials gitlab凭据 > /usr/local/git/bin/git fetch --tags --force --progress -- https://gitlab.arsbaibaodun.com/bcx_basic/bcxinurilfileutil.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > /usr/local/git/bin/git rev-parse refs/remotes/origin/autodownloadupload^{commit} # timeout=10 Checking out Revision bbf273e919f7255b2caf8976353eb7e1dcbce7cd (refs/remotes/origin/autodownloadupload) > /usr/local/git/bin/git config core.sparsecheckout # timeout=10 > /usr/local/git/bin/git checkout -f bbf273e919f7255b2caf8976353eb7e1dcbce7cd # timeout=10 Commit message: "添加陕西政务网配置" > /usr/local/git/bin/git rev-list --no-walk bbf273e919f7255b2caf8976353eb7e1dcbce7cd # timeout=10 Parsing POMs Established TCP socket on 41886 [autodownloadupload] $ java -cp /data/jenkins/plugins/maven-plugin/WEB-INF/lib/maven35-agent-1.14.jar:/usr/local/maven/boot/plexus-classworlds-2.6.0.jar:/usr/local/maven/conf/logging jenkins.maven3.agent.Maven35Main /usr/local/maven /data/apache-tomcat-jenkins/webapps/jenkins/WEB-INF/lib/remoting-3160.vd76b_9ddd10cc.jar /data/jenkins/plugins/maven-plugin/WEB-INF/lib/maven35-interceptor-1.14.jar /data/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.14.jar 41886 Exception in thread "main" java.lang.UnsupportedClassVersionError: hudson/remoting/Launcher has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:756) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:473) at java.net.URLClassLoader.access$100(URLClassLoader.java:74) at java.net.URLClassLoader$1.run(URLClassLoader.java:369) at java.net.URLClassLoader$1.run(URLClassLoader.java:363) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:362) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:425) at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) at jenkins.maven3.agent.Maven35Main.main(Maven35Main.java:136) at jenkins.maven3.agent.Maven35Main.main(Maven35Main.java:66) ERROR: ================================================================================ ERROR: Invalid project setup: Connection reset [test-v5in-bcxinurilfileutil] $ /bin/sh -xe /data/apache-tomcat-jenkins/temp/jenkins8713838426749874901.sh + scp /data/jenkins/workspace/test-v5in-bcxinurilfileutil/tools/autodownloadupload/target/autodownloadupload-1.0.0.jar 172.20.0.248:/data/workspace/autodownloadupload [SSH] script: ="" PATH="/usr/local/n/versions/node/16.0.0/bin:/usr/local/jdk1.8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/var/lib/snapd/snap/bin:/usr/local/maven/bin:/usr/local/git/bin:/root/bin" JAVA_HOME="/usr/local/jdk1.8" JAVA_CLASS="/usr/local/jdk1.8/lib" HOME="/root" #JAVA export JAVA_HOME=/usr/local/java export JAVA_CLASS=$JAVA_HOME/lib export PATH=$JAVA_HOME/bin:$PATH # 杀死进程 pid=$(ps -ef|grep autodownloadupload-1.0.0.jar |grep -v grep|awk '{print $2}') if [ $pid ];then kill -9 $pid fi sleep 5 # 启动进程 cd /data/workspace/autodownloadupload nohup java -Xms1024m -Xmx1024m -jar -Dlog4j2.formatMsgNoLookups=true autodownloadupload-1.0.0.jar --spring.profiles.active=in-te > autodownloadupload.log 2>&1 & [SSH] executing... bash: =: command not found [SSH] completed [SSH] exit-status: 0 ERROR: Processing failed due to a bug in the code. Please report this to the issue tracker (https://jenkins.io/redirect/report-an-issue). java.lang.NullPointerException: Cannot invoke "hudson.model.JDK.getName()" because "jdk" is null at hudson.maven.AbstractMavenProcessFactory.newProcess(AbstractMavenProcessFactory.java:308) at hudson.maven.ProcessCache.get(ProcessCache.java:237) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:802) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526) at hudson.model.Run.execute(Run.java:1895) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543) at hudson.model.ResourceController.execute(ResourceController.java:101) at hudson.model.Executor.run(Executor.java:442) project=hudson.maven.MavenModuleSet@3aaf358b[test-v5in-bcxinurilfileutil] project.getModules()=[hudson.maven.MavenModule@40f9ef44[test-v5in-bcxinurilfileutil/com.bcxin:autodownloadupload][test-v5in-bcxinurilfileutil/com.bcxin:autodownloadupload][relativePath:./tools/autodownloadupload]] project.getRootModule()=hudson.maven.MavenModule@40f9ef44[test-v5in-bcxinurilfileutil/com.bcxin:autodownloadupload][test-v5in-bcxinurilfileutil/com.bcxin:autodownloadupload][relativePath:./tools/autodownloadupload] FATAL: Cannot invoke "hudson.model.JDK.getName()" because "jdk" is null java.lang.NullPointerException: Cannot invoke "hudson.model.JDK.getName()" because "jdk" is null at hudson.maven.AbstractMavenProcessFactory.newProcess(AbstractMavenProcessFactory.java:308) at hudson.maven.ProcessCache.get(ProcessCache.java:237) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:802) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526) at hudson.model.Run.execute(Run.java:1895) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543) at hudson.model.ResourceController.execute(ResourceController.java:101) at hudson.model.Executor.run(Executor.java:442) Finished: FAILURE