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