Started by GitHub push by Callme24kHandsome Running as SYSTEM Building in workspace /var/jenkins_home/workspace/docker-jenkins-test-pkg-runInDocker The recommended git tool is: NONE No credentials specified > git rev-parse --resolve-git-dir /var/jenkins_home/workspace/docker-jenkins-test-pkg-runInDocker/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://xxxx/docker-jenkins-test.git # timeout=10 Fetching upstream changes from https://xxxx/docker-jenkins-test.git > git --version # timeout=10 > git --version # 'git version 2.39.5' > git fetch --tags --force --progress -- https://github.com/Callme24kHandsome/docker-jenkins-test.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/remotes/origin/main^{commit} # timeout=10 Checking out Revision e02733c6cbff85d5622ede2327dc48549a63bbd8 (refs/remotes/origin/main) > git config core.sparsecheckout # timeout=10 > git checkout -f e02733c6cbff85d5622ede2327dc48549a63bbd8 # timeout=10 Commit message: "修改Dockerfile" > git rev-list --no-walk 840813635c7d52b9aa354a225f9eea7feb2a3243 # timeout=10 Parsing POMs Established TCP socket on 37200 [docker-jenkins-test-pkg-runInDocker] $ /var/jenkins_home/gzip/jdk1.8.0_152/bin/java -cp /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven35-agent-1.14.jar:/var/jenkins_home/gzip/apache-maven-3.8.1/boot/plexus-classworlds-2.6.0.jar:/var/jenkins_home/gzip/apache-maven-3.8.1/conf/logging jenkins.maven3.agent.Maven35Main /var/jenkins_home/gzip/apache-maven-3.8.1 /var/jenkins_home/war/WEB-INF/lib/remoting-3283.v92c105e0f819.jar /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven35-interceptor-1.14.jar /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.14.jar 37200 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:763) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) at java.net.URLClassLoader.access$100(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:368) at java.net.URLClassLoader$1.run(URLClassLoader.java:362) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:361) 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 ERROR: [JENKINS-18403][JENKINS-28294] JDK 'jdk8' not supported to run Maven projects. ERROR: Maven projects have to be launched with a Java version greater or equal to the minimum version required by the controller. ERROR: Use the Maven JDK Toolchains (plugin) to build your maven project with an older JDK. ERROR: Retrying with agent Java and setting compile/test properties to point to /var/jenkins_home/gzip/jdk1.8.0_152. ERROR: ================================================================================ Established TCP socket on 42399 [docker-jenkins-test-pkg-runInDocker] $ /opt/java/openjdk/bin/java -cp /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven35-agent-1.14.jar:/var/jenkins_home/gzip/apache-maven-3.8.1/boot/plexus-classworlds-2.6.0.jar:/var/jenkins_home/gzip/apache-maven-3.8.1/conf/logging jenkins.maven3.agent.Maven35Main /var/jenkins_home/gzip/apache-maven-3.8.1 /var/jenkins_home/war/WEB-INF/lib/remoting-3283.v92c105e0f819.jar /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven35-interceptor-1.14.jar /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.14.jar 42399 <===[JENKINS REMOTING CAPACITY]===>���channel started Executing Maven: -B -f /var/jenkins_home/workspace/docker-jenkins-test-pkg-runInDocker/pom.xml clean package -Dmaven.test.skip=true [INFO] Scanning for projects... [INFO] [INFO] ------------------< org.example:docker-jenkins-test >------------------- [INFO] Building docker-jenkins-test 1.0-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ docker-jenkins-test --- [INFO] Deleting /var/jenkins_home/workspace/docker-jenkins-test-pkg-runInDocker/target [INFO] [INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ docker-jenkins-test --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Using 'UTF-8' encoding to copy filtered properties files. [INFO] skip non existing resourceDirectory /var/jenkins_home/workspace/docker-jenkins-test-pkg-runInDocker/src/main/resources [INFO] skip non existing resourceDirectory /var/jenkins_home/workspace/docker-jenkins-test-pkg-runInDocker/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ docker-jenkins-test --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 2 source files to /var/jenkins_home/workspace/docker-jenkins-test-pkg-runInDocker/target/classes [INFO] [INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ docker-jenkins-test --- [INFO] Not copying test resources [INFO] [INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ docker-jenkins-test --- [INFO] Not compiling test sources [INFO] [INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ docker-jenkins-test --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-jar-plugin:3.2.0:jar (default-jar) @ docker-jenkins-test --- [INFO] Building jar: /var/jenkins_home/workspace/docker-jenkins-test-pkg-runInDocker/target/docker-jenkins-test-1.0-SNAPSHOT.jar [INFO] [INFO] --- spring-boot-maven-plugin:2.5.6:repackage (repackage) @ docker-jenkins-test --- [INFO] Replacing main artifact with repackaged archive [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 55.754 s [INFO] Finished at: 2025-02-12T23:57:02+08:00 [INFO] ------------------------------------------------------------------------ Waiting for Jenkins to finish collecting data [JENKINS] Archiving /var/jenkins_home/workspace/docker-jenkins-test-pkg-runInDocker/pom.xml to org.example/docker-jenkins-test/1.0-SNAPSHOT/docker-jenkins-test-1.0-SNAPSHOT.pom [JENKINS] Archiving /var/jenkins_home/workspace/docker-jenkins-test-pkg-runInDocker/target/docker-jenkins-test-1.0-SNAPSHOT.jar to org.example/docker-jenkins-test/1.0-SNAPSHOT/docker-jenkins-test-1.0-SNAPSHOT.jar [docker-jenkins-test-pkg-runInDocker] $ /bin/sh -xe /tmp/jenkins5156680462021271743.sh channel stopped + cd /var/jenkins_home/workspace/docker-jenkins-test-pkg-runInDocker + ls -l Dockerfile -rw-r--r--. 1 root root 120 Feb 9 23:21 Dockerfile + ls -l target/docker-jenkins-test-1.0-SNAPSHOT.jar -rw-r--r--. 1 root root 17490950 Feb 12 23:56 target/docker-jenkins-test-1.0-SNAPSHOT.jar + find target -name *.jar + echo JAR 包路径: target/docker-jenkins-test-1.0-SNAPSHOT.jar JAR 包路径: target/docker-jenkins-test-1.0-SNAPSHOT.jar + docker build -t docker-jenkins-test-pkg-runindocker:latest . DEPRECATED: The legacy builder is deprecated and will be removed in a future release. Install the buildx component to build images with BuildKit: https://docs.docker.com/go/buildx/