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