Skip to content

Console Output

Started by user admin
Running as SYSTEM
Building in workspace /data/jenkins/workspace/saas-backend-server
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/saas-backend-server/.git # timeout=10
Fetching changes from the remote Git repository
 > /usr/local/git/bin/git config remote.origin.url https://gitlab.arsbaibaodun.com/bcx_platform/saas-backend-server.git # timeout=10
Fetching upstream changes from https://gitlab.arsbaibaodun.com/bcx_platform/saas-backend-server.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_platform/saas-backend-server.git +refs/heads/*:refs/remotes/origin/* # timeout=10
 > /usr/local/git/bin/git rev-parse origin/测试环境配置修改_20231201^{commit} # timeout=10
Checking out Revision 9ff5c2399b8226ba26f006fffdfe69734684ce18 (origin/测试环境配置修改_20231201)
 > /usr/local/git/bin/git config core.sparsecheckout # timeout=10
 > /usr/local/git/bin/git checkout -f 9ff5c2399b8226ba26f006fffdfe69734684ce18 # timeout=10
Commit message: "测试环境配置修改"
First time build. Skipping changelog.
Parsing POMs
Modules changed, recalculating dependency graph
Established TCP socket on 43653
[saas-backend-server] $ /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 43653
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 38138
[saas-backend-server] $ /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 38138
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/saas-backend-server/src/saas-backend-server/pom.xml clean package -DskipTests -Ptest-in-ws
[INFO] Scanning for projects...
[WARNING] The requested profile "test-in-ws" could not be activated because it does not exist.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] saas-backend-server                                                [pom]
[INFO] saas-backend-core                                                  [jar]
[INFO] saas-backend-domain                                                [jar]
[INFO] saas-backend-task                                                  [jar]
[INFO] saas-backend-job                                                   [jar]
[INFO] 
[INFO] -------------------< com.bcxin:saas-backend-server >--------------------
[INFO] Building saas-backend-server 1.0-SNAPSHOT                          [1/5]
[INFO]   from pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:3.2.0:clean (default-clean) @ saas-backend-server ---
[INFO] 
[INFO] --------------------< com.bcxin:saas-backend-core >---------------------
[INFO] Building saas-backend-core 1.0-SNAPSHOT                            [2/5]
[INFO]   from saas-backend-core/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] Downloading from abcxin-public: http://49.4.51.65:8060/repository/v5-public/com/google/guava/guava/maven-metadata.xml
[INFO] Downloaded from abcxin-public: http://49.4.51.65:8060/repository/v5-public/com/google/guava/guava/maven-metadata.xml (4.5 kB at 50 kB/s)
[INFO] 
[INFO] --- maven-clean-plugin:3.2.0:clean (default-clean) @ saas-backend-core ---
[INFO] Deleting /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-core/target
[INFO] 
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ saas-backend-core ---
[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/saas-backend-server/src/saas-backend-server/saas-backend-core/src/main/resources
[INFO] skip non existing resourceDirectory /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-core/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ saas-backend-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 40 source files to /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-core/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ saas-backend-core ---
[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/saas-backend-server/src/saas-backend-server/saas-backend-core/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.10.1:testCompile (default-testCompile) @ saas-backend-core ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ saas-backend-core ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:3.2.2:jar (default-jar) @ saas-backend-core ---
[INFO] Building jar: /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-core/target/saas-backend-core-1.0-SNAPSHOT.jar
[INFO] 
[INFO] -------------------< com.bcxin:saas-backend-domain >--------------------
[INFO] Building saas-backend-domain 1.0-SNAPSHOT                          [3/5]
[INFO]   from saas-backend-domain/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:3.2.0:clean (default-clean) @ saas-backend-domain ---
[INFO] Deleting /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-domain/target
[INFO] 
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ saas-backend-domain ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] Copying 0 resource
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ saas-backend-domain ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 127 source files to /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-domain/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ saas-backend-domain ---
[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/saas-backend-server/src/saas-backend-server/saas-backend-domain/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.10.1:testCompile (default-testCompile) @ saas-backend-domain ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ saas-backend-domain ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:3.2.2:jar (default-jar) @ saas-backend-domain ---
[INFO] Building jar: /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-domain/target/saas-backend-domain-1.0-SNAPSHOT.jar
[INFO] 
[INFO] --------------------< com.bcxin:saas-backend-task >---------------------
[INFO] Building saas-backend-task 1.0-SNAPSHOT                            [4/5]
[INFO]   from saas-backend-task/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:3.2.0:clean (default-clean) @ saas-backend-task ---
[INFO] Deleting /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-task/target
[INFO] 
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ saas-backend-task ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ saas-backend-task ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 44 source files to /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-task/target/classes
[WARNING] /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-task/src/main/java/com/bcxin/backend/utils/MD5Util.java:[3,15] BASE64Encoder is internal proprietary API and may be removed in a future release
[WARNING] /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-task/src/main/java/com/bcxin/backend/utils/MD5Util.java:[3,15] BASE64Encoder is internal proprietary API and may be removed in a future release
[WARNING] /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-task/src/main/java/com/bcxin/backend/utils/MD5Util.java:[3,15] BASE64Encoder is internal proprietary API and may be removed in a future release
[WARNING] /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-task/src/main/java/com/bcxin/backend/utils/MD5Util.java:[3,15] BASE64Encoder is internal proprietary API and may be removed in a future release
[WARNING] /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-task/src/main/java/com/bcxin/backend/utils/MD5Util.java:[3,15] BASE64Encoder is internal proprietary API and may be removed in a future release
[WARNING] /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-task/src/main/java/com/bcxin/backend/utils/MD5Util.java:[86,3] BASE64Encoder is internal proprietary API and may be removed in a future release
[WARNING] /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-task/src/main/java/com/bcxin/backend/utils/MD5Util.java:[86,32] BASE64Encoder is internal proprietary API and may be removed in a future release
[INFO] 
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ saas-backend-task ---
[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/saas-backend-server/src/saas-backend-server/saas-backend-task/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.10.1:testCompile (default-testCompile) @ saas-backend-task ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ saas-backend-task ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:3.2.2:jar (default-jar) @ saas-backend-task ---
[INFO] Building jar: /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-task/target/saas-backend-task-1.0.jar
[INFO] 
[INFO] --- spring-boot-maven-plugin:2.5.1:repackage (repackage) @ saas-backend-task ---
[INFO] Replacing main artifact with repackaged archive
[INFO] 
[INFO] ---------------------< com.bcxin:saas-backend-job >---------------------
[INFO] Building saas-backend-job 1.0-SNAPSHOT                             [5/5]
[INFO]   from saas-backend-job/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:3.2.0:clean (default-clean) @ saas-backend-job ---
[INFO] Deleting /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-job/target
[INFO] 
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ saas-backend-job ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] Copying 8 resources
[INFO] Copying 5 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ saas-backend-job ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 38 source files to /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-job/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ saas-backend-job ---
[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/saas-backend-server/src/saas-backend-server/saas-backend-job/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.10.1:testCompile (default-testCompile) @ saas-backend-job ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ saas-backend-job ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:3.2.2:jar (default-jar) @ saas-backend-job ---
[INFO] Building jar: /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-job/target/saas-backend-job-1.0-SNAPSHOT.jar
[INFO] 
[INFO] --- spring-boot-maven-plugin:2.7.3:repackage (repackage) @ saas-backend-job ---
[INFO] Replacing main artifact with repackaged archive
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for saas-backend-server 1.0-SNAPSHOT:
[INFO] 
[INFO] saas-backend-server ................................ SUCCESS [  0.487 s]
[INFO] saas-backend-core .................................. SUCCESS [  6.039 s]
[INFO] saas-backend-domain ................................ SUCCESS [  8.705 s]
[INFO] saas-backend-task .................................. SUCCESS [  4.696 s]
[INFO] saas-backend-job ................................... SUCCESS [  4.627 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  28.744 s
[INFO] Finished at: 2023-12-06T14:24:26+08:00
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "test-in-ws" could not be activated because it does not exist.
Waiting for Jenkins to finish collecting data
[JENKINS] Archiving /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-core/pom.xml to com.bcxin/saas-backend-core/1.0-SNAPSHOT/saas-backend-core-1.0-SNAPSHOT.pom
[JENKINS] Archiving /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-core/target/saas-backend-core-1.0-SNAPSHOT.jar to com.bcxin/saas-backend-core/1.0-SNAPSHOT/saas-backend-core-1.0-SNAPSHOT.jar
[JENKINS] Archiving /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-task/pom.xml to com.bcxin/saas-backend-task/1.0-SNAPSHOT/saas-backend-task-1.0-SNAPSHOT.pom
[JENKINS] Archiving /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-task/target/saas-backend-task-1.0.jar to com.bcxin/saas-backend-task/1.0-SNAPSHOT/saas-backend-task-1.0-SNAPSHOT.jar
[JENKINS] Archiving /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-domain/pom.xml to com.bcxin/saas-backend-domain/1.0-SNAPSHOT/saas-backend-domain-1.0-SNAPSHOT.pom
[JENKINS] Archiving /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-domain/target/saas-backend-domain-1.0-SNAPSHOT.jar to com.bcxin/saas-backend-domain/1.0-SNAPSHOT/saas-backend-domain-1.0-SNAPSHOT.jar
[JENKINS] Archiving /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/pom.xml to com.bcxin/saas-backend-server/1.0-SNAPSHOT/saas-backend-server-1.0-SNAPSHOT.pom
[JENKINS] Archiving /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-job/pom.xml to com.bcxin/saas-backend-job/1.0-SNAPSHOT/saas-backend-job-1.0-SNAPSHOT.pom
[JENKINS] Archiving /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-job/target/saas-backend-job-1.0-SNAPSHOT.jar to com.bcxin/saas-backend-job/1.0-SNAPSHOT/saas-backend-job-1.0-SNAPSHOT.jar
[saas-backend-server] $ /bin/sh -xe /data/apache-tomcat-jenkins/temp/jenkins9438077878798714552.sh
channel stopped
+ scp /data/jenkins/workspace/saas-backend-server/src/saas-backend-server/saas-backend-task/target/saas-backend-task-1.0.jar 172.20.0.248:/data/workspace/saas-backend-server/run
[SSH] script:
PATH="/usr/local/jdk1.8/bin:/usr/local/jdk1.8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/maven/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 -v grep|grep saas-backend-task-1.0.jar|awk '{print $2}')
SERVER_STATUS=$(ps -ef|grep -v grep|grep saas-backend-task-1.0.jar|awk '{print $2}'|wc -l)

#新jar包所在目录
run=/data/workspace/saas-backend-server/run
#运行目录
runing=/data/workspace/saas-backend-server/runing
if [ $SERVER_STATUS -ge 1 ]
then
	kill $PID
	sleep 5
	kill -9 $SERVER_STATUS
fi
\cp $run/saas-backend-task-1.0.jar  $runing/saas-backend-task-1.0.jar

cd  $runing

nohup java  -Xms1024m -Xmx1024m  -jar saas-backend-task-1.0.jar  > /dev/null  2>saas-backend-task-error.log &


[SSH] executing...

[SSH] completed
[SSH] exit-status: 0

Finished: SUCCESS