11:00:03 Started by user unknown or anonymous 11:00:03 Running as SYSTEM 11:00:03 Building in workspace /data/jenkins/workspace/test-v5qy-bcxinurilfileutil 11:00:03 The recommended git tool is: NONE 11:00:03 using credential e9f27bcd-2741-48e3-b693-e66c2b7b3499 11:00:03 > /usr/local/git/bin/git rev-parse --resolve-git-dir /data/jenkins/workspace/test-v5qy-bcxinurilfileutil/.git # timeout=10 11:00:03 Fetching changes from the remote Git repository 11:00:03 > /usr/local/git/bin/git config remote.origin.url https://gitlab.arsbaibaodun.com/bcx_basic/bcxinurilfileutil.git # timeout=10 11:00:03 Fetching upstream changes from https://gitlab.arsbaibaodun.com/bcx_basic/bcxinurilfileutil.git 11:00:03 > /usr/local/git/bin/git --version # timeout=10 11:00:03 > git --version # 'git version 2.43.0' 11:00:03 using GIT_ASKPASS to set credentials gitlab凭据 11:00:03 > /usr/local/git/bin/git fetch --tags --force --progress -- https://gitlab.arsbaibaodun.com/bcx_basic/bcxinurilfileutil.git +refs/heads/*:refs/remotes/origin/* # timeout=10 11:00:04 > /usr/local/git/bin/git rev-parse refs/remotes/origin/autodownloadupload^{commit} # timeout=10 11:00:04 Checking out Revision 61df78798e8fa8dcdf6f9e374211cc2295034bcb (refs/remotes/origin/autodownloadupload) 11:00:04 > /usr/local/git/bin/git config core.sparsecheckout # timeout=10 11:00:04 > /usr/local/git/bin/git checkout -f 61df78798e8fa8dcdf6f9e374211cc2295034bcb # timeout=10 11:00:04 Commit message: "文件重复下载增加日志打印" 11:00:04 > /usr/local/git/bin/git rev-list --no-walk eaac08171a897567c9c89708f0c1e29f9f7969a3 # timeout=10 11:00:04 Parsing POMs 11:00:04 Established TCP socket on 34115 11:00:04 [autodownloadupload] $ /usr/local/jdk1.8/bin/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 34115 11:00:04 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 11:00:04 at java.lang.ClassLoader.defineClass1(Native Method) 11:00:04 at java.lang.ClassLoader.defineClass(ClassLoader.java:756) 11:00:04 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) 11:00:04 at java.net.URLClassLoader.defineClass(URLClassLoader.java:473) 11:00:04 at java.net.URLClassLoader.access$100(URLClassLoader.java:74) 11:00:04 at java.net.URLClassLoader$1.run(URLClassLoader.java:369) 11:00:04 at java.net.URLClassLoader$1.run(URLClassLoader.java:363) 11:00:04 at java.security.AccessController.doPrivileged(Native Method) 11:00:04 at java.net.URLClassLoader.findClass(URLClassLoader.java:362) 11:00:04 at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:425) 11:00:04 at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42) 11:00:04 at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) 11:00:04 at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) 11:00:04 at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) 11:00:04 at jenkins.maven3.agent.Maven35Main.main(Maven35Main.java:136) 11:00:04 at jenkins.maven3.agent.Maven35Main.main(Maven35Main.java:66) 11:00:04 ERROR: ================================================================================ 11:00:04 ERROR: Invalid project setup: Connection reset 11:00:04 ERROR: [JENKINS-18403][JENKINS-28294] JDK 'jdk1.8' not supported to run Maven projects. 11:00:04 ERROR: Maven projects have to be launched with a Java version greater or equal to the minimum version required by the controller. 11:00:04 ERROR: Use the Maven JDK Toolchains (plugin) to build your maven project with an older JDK. 11:00:04 ERROR: Retrying with agent Java and setting compile/test properties to point to /usr/local/jdk1.8. 11:00:04 ERROR: ================================================================================ 11:00:04 Established TCP socket on 39777 11:00:04 [autodownloadupload] $ /usr/local/jdk-17.0.6/bin/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 39777 11:00:04 NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED 11:00:05 <===[JENKINS REMOTING CAPACITY]===>channel started 11:00:06 Executing Maven: -B -f /data/jenkins/workspace/test-v5qy-bcxinurilfileutil/tools/autodownloadupload/pom.xml clean package -DskipTests -Pout-te 11:00:07 [INFO] Scanning for projects... 11:00:07 [INFO] 11:00:07 [INFO] --------------------< com.bcxin:autodownloadupload >-------------------- 11:00:07 [INFO] Building autodownloadupload 1.0.0 11:00:07 [INFO] --------------------------------[ jar ]--------------------------------- 11:00:08 [WARNING] The artifact mysql:mysql-connector-java:jar:8.0.31 has been relocated to com.mysql:mysql-connector-j:jar:8.0.31 11:00:08 [INFO] 11:00:08 [INFO] --- maven-clean-plugin:3.2.0:clean (default-clean) @ autodownloadupload --- 11:00:08 [INFO] Deleting /data/jenkins/workspace/test-v5qy-bcxinurilfileutil/tools/autodownloadupload/target 11:00:08 [INFO] 11:00:08 [INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ autodownloadupload --- 11:00:08 [INFO] Using 'UTF-8' encoding to copy filtered resources. 11:00:08 [INFO] Using 'UTF-8' encoding to copy filtered properties files. 11:00:08 [INFO] Copying 15 resources 11:00:08 [INFO] Copying 3 resources 11:00:08 [INFO] 11:00:08 [INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ autodownloadupload --- 11:00:09 [INFO] Changes detected - recompiling the module! 11:00:09 [INFO] Compiling 49 source files to /data/jenkins/workspace/test-v5qy-bcxinurilfileutil/tools/autodownloadupload/target/classes 11:00:12 [INFO] 11:00:12 [INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ autodownloadupload --- 11:00:12 [INFO] Using 'UTF-8' encoding to copy filtered resources. 11:00:12 [INFO] Using 'UTF-8' encoding to copy filtered properties files. 11:00:12 [INFO] skip non existing resourceDirectory /data/jenkins/workspace/test-v5qy-bcxinurilfileutil/tools/autodownloadupload/src/test/resources 11:00:12 [INFO] 11:00:12 [INFO] --- maven-compiler-plugin:3.10.1:testCompile (default-testCompile) @ autodownloadupload --- 11:00:12 [INFO] Changes detected - recompiling the module! 11:00:12 [INFO] Compiling 1 source file to /data/jenkins/workspace/test-v5qy-bcxinurilfileutil/tools/autodownloadupload/target/test-classes 11:00:14 [INFO] 11:00:14 [INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ autodownloadupload --- 11:00:14 [INFO] Tests are skipped. 11:00:14 [INFO] 11:00:14 [INFO] --- maven-jar-plugin:3.2.2:jar (default-jar) @ autodownloadupload --- 11:00:14 [INFO] Building jar: /data/jenkins/workspace/test-v5qy-bcxinurilfileutil/tools/autodownloadupload/target/autodownloadupload-1.0.0.jar 11:00:14 [INFO] 11:00:14 [INFO] --- spring-boot-maven-plugin:2.7.5:repackage (repackage) @ autodownloadupload --- 11:00:15 [INFO] Replacing main artifact with repackaged archive 11:00:16 [INFO] ------------------------------------------------------------------------ 11:00:16 [INFO] BUILD SUCCESS 11:00:16 [INFO] ------------------------------------------------------------------------ 11:00:16 [INFO] Total time: 8.970 s 11:00:16 [INFO] Finished at: 2024-09-02T11:00:16+08:00 11:00:16 [INFO] ------------------------------------------------------------------------ 11:00:16 [WARNING] The requested profile "out-te" could not be activated because it does not exist. 11:00:16 Waiting for Jenkins to finish collecting data 11:00:16 [JENKINS] Archiving /data/jenkins/workspace/test-v5qy-bcxinurilfileutil/tools/autodownloadupload/pom.xml to com.bcxin/autodownloadupload/1.0.0/autodownloadupload-1.0.0.pom 11:00:16 [JENKINS] Archiving /data/jenkins/workspace/test-v5qy-bcxinurilfileutil/tools/autodownloadupload/target/autodownloadupload-1.0.0.jar to com.bcxin/autodownloadupload/1.0.0/autodownloadupload-1.0.0.jar 11:00:16 [test-v5qy-bcxinurilfileutil] $ /bin/sh -xe /data/apache-tomcat-jenkins/temp/jenkins2338479861357467203.sh 11:00:16 channel stopped 11:00:16 + scp /data/jenkins/workspace/test-v5qy-bcxinurilfileutil/tools/autodownloadupload/target/autodownloadupload-1.0.0.jar 172.20.0.160:/data/workspace/autodownloadupload 11:00:17 [SSH] script: 11:00:17 PATH="/usr/local/jdk1.8/bin:/usr/local/maven:/usr/local/n/versions/node/16.0.0/bin:/usr/local/jdk1.8/bin:/usr/local/node/bin:/usr/local/jdk1.8/bin:/usr/local/node/bin:/usr/local/jdk1.8/bin:/usr/local/jdk1.8/bin:/usr/local/jdk1.8/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:/usr/local/maven/bin:/usr/local/git/bin:/usr/local/maven/bin:/usr/local/git/bin:/usr/local/maven/bin:/usr/local/git/bin:/usr/local/maven/bin:/usr/local/git/bin:/usr/local/maven/bin:/usr/local/git/bin" 11:00:17 JAVA_HOME="/usr/local/jdk-17.0.6" 11:00:17 JAVA_CLASS="/usr/local/jdk1.8/lib" 11:00:17 HOME="/root" 11:00:17 11:00:17 #JAVA 11:00:17 export JAVA_HOME=/usr/local/java 11:00:17 export JAVA_CLASS=$JAVA_HOME/lib 11:00:17 export PATH=$JAVA_HOME/bin:$PATH 11:00:17 11:00:17 # 杀死进程 11:00:17 pid=$(ps -ef|grep autodownloadupload-1.0.0.jar |grep -v grep|awk '{print $2}') 11:00:17 if [ $pid -ne 0 ];then 11:00:17 kill -9 $pid 11:00:17 fi 11:00:17 11:00:17 sleep 5 11:00:17 11:00:17 # 启动进程 11:00:17 cd /data/workspace/autodownloadupload 11:00:17 nohup java -Xms1024m -Xmx1024m -jar -Dlog4j2.formatMsgNoLookups=true autodownloadupload-1.0.0.jar --spring.profiles.active=out-te > autodownloadupload.log 2>&1 & 11:00:17 11:00:17 [SSH] executing... 11:00:23 11:00:23 [SSH] completed 11:00:23 [SSH] exit-status: 0 11:00:23 11:00:23 Finished: SUCCESS