Skip to content

Console Output

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 33264
[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 33264
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
ERROR: [JENKINS-18403][JENKINS-28294] JDK 'jdk1.8' 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 /usr/local/jdk1.8.
ERROR: ================================================================================
Established TCP socket on 32928
[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 32928
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
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven:  -B -f /data/jenkins/workspace/test-v5in-bcxinurilfileutil/tools/autodownloadupload/pom.xml clean package -DskipTests -Pout-te
[INFO] Scanning for projects...
[INFO] 
[INFO] --------------------< com.bcxin:autodownloadupload >--------------------
[INFO] Building autodownloadupload 1.0.0
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The artifact mysql:mysql-connector-java:jar:8.0.31 has been relocated to com.mysql:mysql-connector-j:jar:8.0.31
[INFO] 
[INFO] --- maven-clean-plugin:3.2.0:clean (default-clean) @ autodownloadupload ---
[INFO] Deleting /data/jenkins/workspace/test-v5in-bcxinurilfileutil/tools/autodownloadupload/target
[INFO] 
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ autodownloadupload ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] Copying 17 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ autodownloadupload ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 49 source files to /data/jenkins/workspace/test-v5in-bcxinurilfileutil/tools/autodownloadupload/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ autodownloadupload ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory /data/jenkins/workspace/test-v5in-bcxinurilfileutil/tools/autodownloadupload/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.10.1:testCompile (default-testCompile) @ autodownloadupload ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /data/jenkins/workspace/test-v5in-bcxinurilfileutil/tools/autodownloadupload/target/test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ autodownloadupload ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:3.2.2:jar (default-jar) @ autodownloadupload ---
[INFO] Building jar: /data/jenkins/workspace/test-v5in-bcxinurilfileutil/tools/autodownloadupload/target/autodownloadupload-1.0.0.jar
[INFO] 
[INFO] --- spring-boot-maven-plugin:2.7.5:repackage (repackage) @ autodownloadupload ---
[INFO] Replacing main artifact with repackaged archive
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  7.754 s
[INFO] Finished at: 2024-09-03T17:51:18+08:00
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[JENKINS] Archiving /data/jenkins/workspace/test-v5in-bcxinurilfileutil/tools/autodownloadupload/pom.xml to com.bcxin/autodownloadupload/1.0.0/autodownloadupload-1.0.0.pom
[JENKINS] Archiving /data/jenkins/workspace/test-v5in-bcxinurilfileutil/tools/autodownloadupload/target/autodownloadupload-1.0.0.jar to com.bcxin/autodownloadupload/1.0.0/autodownloadupload-1.0.0.jar
[test-v5in-bcxinurilfileutil] $ /bin/sh -xe /data/apache-tomcat-jenkins/temp/jenkins3427686132436764809.sh
channel stopped
+ 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/jdk1.8/bin:/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

Finished: SUCCESS