09:41:28 Started by user unknown or anonymous 09:41:28 Running as SYSTEM 09:41:28 Building in workspace /data/jenkins/workspace/test-v5in-ferry 09:41:28 The recommended git tool is: NONE 09:41:28 using credential e9f27bcd-2741-48e3-b693-e66c2b7b3499 09:41:28 > /usr/local/git/bin/git rev-parse --resolve-git-dir /data/jenkins/workspace/test-v5in-ferry/.git # timeout=10 09:41:28 Fetching changes from the remote Git repository 09:41:28 > /usr/local/git/bin/git config remote.origin.url https://gitlab.arsbaibaodun.com/bcx_basic/bj-ferry.git # timeout=10 09:41:28 Fetching upstream changes from https://gitlab.arsbaibaodun.com/bcx_basic/bj-ferry.git 09:41:28 > /usr/local/git/bin/git --version # timeout=10 09:41:28 > git --version # 'git version 2.43.0' 09:41:28 using GIT_ASKPASS to set credentials gitlab凭据 09:41:28 > /usr/local/git/bin/git fetch --tags --force --progress -- https://gitlab.arsbaibaodun.com/bcx_basic/bj-ferry.git +refs/heads/*:refs/remotes/origin/* # timeout=10 09:41:28 > /usr/local/git/bin/git rev-parse refs/remotes/origin/test^{commit} # timeout=10 09:41:28 Checking out Revision d0f50909d8a2188c407de38c0a29b7034e1c5b2b (refs/remotes/origin/test) 09:41:28 > /usr/local/git/bin/git config core.sparsecheckout # timeout=10 09:41:28 > /usr/local/git/bin/git checkout -f d0f50909d8a2188c407de38c0a29b7034e1c5b2b # timeout=10 09:41:28 Commit message: "项目配置文件" 09:41:28 > /usr/local/git/bin/git rev-list --no-walk 6a5e50d86faacf0662fb88e3b8b9a152ac989747 # timeout=10 09:41:28 [test-v5in-ferry] $ /bin/sh -xe /data/apache-tomcat-jenkins/temp/jenkins1136188597082850345.sh 09:41:28 + cd /data/jenkins/workspace/test-v5in-ferry 09:41:28 + mvn clean package -DskipTests -Pin-test 09:41:30 [INFO] Scanning for projects... 09:41:30 [INFO] 09:41:30 [INFO] -------------------------< com.bcxin:bj-ferry >------------------------- 09:41:30 [INFO] Building bj-ferry 1.0.0 09:41:30 [INFO] --------------------------------[ jar ]--------------------------------- 09:41:31 [WARNING] The artifact mysql:mysql-connector-java:jar:8.0.31 has been relocated to com.mysql:mysql-connector-j:jar:8.0.31 09:41:31 [INFO] 09:41:31 [INFO] --- maven-clean-plugin:3.2.0:clean (default-clean) @ bj-ferry --- 09:41:31 [INFO] Deleting /data/jenkins/workspace/test-v5in-ferry/target 09:41:31 [INFO] 09:41:31 [INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ bj-ferry --- 09:41:31 [INFO] Using 'UTF-8' encoding to copy filtered resources. 09:41:31 [INFO] Using 'UTF-8' encoding to copy filtered properties files. 09:41:31 [INFO] Copying 6 resources 09:41:31 [INFO] Copying 9 resources 09:41:31 [INFO] 09:41:31 [INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ bj-ferry --- 09:41:31 [INFO] Changes detected - recompiling the module! 09:41:31 [INFO] Compiling 90 source files to /data/jenkins/workspace/test-v5in-ferry/target/classes 09:41:35 [WARNING] /data/jenkins/workspace/test-v5in-ferry/src/main/java/com/bcxin/ferry/common/utils/Base64Util.java:[4,16] sun.misc.BASE64Decoder is internal proprietary API and may be removed in a future release 09:41:35 [WARNING] /data/jenkins/workspace/test-v5in-ferry/src/main/java/com/bcxin/ferry/common/utils/Base64Util.java:[4,16] sun.misc.BASE64Decoder is internal proprietary API and may be removed in a future release 09:41:35 [WARNING] /data/jenkins/workspace/test-v5in-ferry/src/main/java/com/bcxin/ferry/common/utils/Base64Util.java:[4,16] sun.misc.BASE64Decoder is internal proprietary API and may be removed in a future release 09:41:35 [WARNING] /data/jenkins/workspace/test-v5in-ferry/src/main/java/com/bcxin/ferry/common/utils/Base64Util.java:[4,16] sun.misc.BASE64Decoder is internal proprietary API and may be removed in a future release 09:41:35 [WARNING] /data/jenkins/workspace/test-v5in-ferry/src/main/java/com/bcxin/ferry/common/utils/Base64Util.java:[4,16] sun.misc.BASE64Decoder is internal proprietary API and may be removed in a future release 09:41:35 [WARNING] /data/jenkins/workspace/test-v5in-ferry/src/main/java/com/bcxin/ferry/common/utils/Base64Util.java:[32,13] sun.misc.BASE64Decoder is internal proprietary API and may be removed in a future release 09:41:35 [WARNING] /data/jenkins/workspace/test-v5in-ferry/src/main/java/com/bcxin/ferry/common/utils/Base64Util.java:[32,47] sun.misc.BASE64Decoder is internal proprietary API and may be removed in a future release 09:41:35 [INFO] /data/jenkins/workspace/test-v5in-ferry/src/main/java/com/bcxin/ferry/common/utils/IdGeneratorSnowflake.java: /data/jenkins/workspace/test-v5in-ferry/src/main/java/com/bcxin/ferry/common/utils/IdGeneratorSnowflake.java uses or overrides a deprecated API. 09:41:35 [INFO] /data/jenkins/workspace/test-v5in-ferry/src/main/java/com/bcxin/ferry/common/utils/IdGeneratorSnowflake.java: Recompile with -Xlint:deprecation for details. 09:41:35 [INFO] /data/jenkins/workspace/test-v5in-ferry/src/main/java/com/bcxin/ferry/dtos/response/result/RespResult.java: Some input files use unchecked or unsafe operations. 09:41:35 [INFO] /data/jenkins/workspace/test-v5in-ferry/src/main/java/com/bcxin/ferry/dtos/response/result/RespResult.java: Recompile with -Xlint:unchecked for details. 09:41:35 [INFO] 09:41:35 [INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ bj-ferry --- 09:41:35 [INFO] Using 'UTF-8' encoding to copy filtered resources. 09:41:35 [INFO] Using 'UTF-8' encoding to copy filtered properties files. 09:41:35 [INFO] skip non existing resourceDirectory /data/jenkins/workspace/test-v5in-ferry/src/test/resources 09:41:35 [INFO] 09:41:35 [INFO] --- maven-compiler-plugin:3.10.1:testCompile (default-testCompile) @ bj-ferry --- 09:41:35 [INFO] No sources to compile 09:41:35 [INFO] 09:41:35 [INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ bj-ferry --- 09:41:35 [INFO] Tests are skipped. 09:41:35 [INFO] 09:41:35 [INFO] --- maven-jar-plugin:3.2.2:jar (default-jar) @ bj-ferry --- 09:41:35 [INFO] Building jar: /data/jenkins/workspace/test-v5in-ferry/target/bj-ferry-1.0.0.jar 09:41:36 [INFO] 09:41:36 [INFO] --- spring-boot-maven-plugin:2.7.5:repackage (repackage) @ bj-ferry --- 09:41:36 [INFO] Replacing main artifact with repackaged archive 09:41:36 [INFO] ------------------------------------------------------------------------ 09:41:36 [INFO] BUILD SUCCESS 09:41:36 [INFO] ------------------------------------------------------------------------ 09:41:36 [INFO] Total time: 6.130 s 09:41:36 [INFO] Finished at: 2024-03-27T09:41:36+08:00 09:41:36 [INFO] ------------------------------------------------------------------------ 09:41:36 [WARNING] The requested profile "in-test" could not be activated because it does not exist. 09:41:36 + scp /data/jenkins/workspace/test-v5in-ferry/target/bj-ferry-1.0.0.jar 172.20.0.248:/data/workspace/ferry 09:41:36 [SSH] script: 09:41:36 PATH="/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" 09:41:36 JAVA_HOME="/usr/local/jdk1.8" 09:41:36 JAVA_CLASS="/usr/local/jdk1.8/lib" 09:41:36 HOME="/root" 09:41:36 09:41:36 #JAVA 09:41:36 export JAVA_HOME=/usr/local/java 09:41:36 export JAVA_CLASS=$JAVA_HOME/lib 09:41:36 export PATH=$JAVA_HOME/bin:$PATH 09:41:36 09:41:36 # 杀死进程 09:41:36 pid=$(ps -ef|grep bj-ferry-1.0.0.jar |grep -v grep|awk '{print $2}') 09:41:36 if [ $pid ];then 09:41:36 kill -9 $pid 09:41:36 fi 09:41:36 09:41:36 sleep 5 09:41:36 09:41:36 # 启动进程 09:41:36 cd /data/workspace/ferry 09:41:36 nohup java -Xms1024m -Xmx1024m -jar bj-ferry-1.0.0.jar --spring.profiles.active=in-test &> /dev/null & 09:41:36 09:41:36 09:41:36 [SSH] executing... 09:41:42 09:41:42 [SSH] completed 09:41:42 [SSH] exit-status: 0 09:41:42 09:41:42 Finished: SUCCESS