Skip to content

Console Output

15:19:38 Started by user unknown or anonymous
15:19:38 Running as SYSTEM
15:19:38 Building in workspace /data/jenkins/workspace/test-v5qy--ferry
15:19:38 The recommended git tool is: NONE
15:19:38 using credential e9f27bcd-2741-48e3-b693-e66c2b7b3499
15:19:38  > /usr/local/git/bin/git rev-parse --resolve-git-dir /data/jenkins/workspace/test-v5qy--ferry/.git # timeout=10
15:19:38 Fetching changes from the remote Git repository
15:19:38  > /usr/local/git/bin/git config remote.origin.url https://gitlab.arsbaibaodun.com/bcx_basic/bj-ferry.git # timeout=10
15:19:38 Fetching upstream changes from https://gitlab.arsbaibaodun.com/bcx_basic/bj-ferry.git
15:19:38  > /usr/local/git/bin/git --version # timeout=10
15:19:38  > git --version # 'git version 2.43.0'
15:19:38 using GIT_ASKPASS to set credentials gitlab凭据
15:19:38  > /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
15:19:39  > /usr/local/git/bin/git rev-parse refs/remotes/origin/test^{commit} # timeout=10
15:19:39 Checking out Revision e6a8a682a45a6ff56aa03021ff26620571512165 (refs/remotes/origin/test)
15:19:39  > /usr/local/git/bin/git config core.sparsecheckout # timeout=10
15:19:39  > /usr/local/git/bin/git checkout -f e6a8a682a45a6ff56aa03021ff26620571512165 # timeout=10
15:19:39 Commit message: "测试环境redis修改"
15:19:39  > /usr/local/git/bin/git rev-list --no-walk 4b838cb73747be7defef7c02dbf7542e2a7be2d0 # timeout=10
15:19:39 [test-v5qy--ferry] $ /bin/sh -xe /data/apache-tomcat-jenkins/temp/jenkins1601555537596503303.sh
15:19:39 + cd /data/jenkins/workspace/test-v5qy--ferry
15:19:39 + mvn clean package -DskipTests -Pout-test
15:19:40 [INFO] Scanning for projects...
15:19:40 [INFO] 
15:19:40 [INFO] -------------------------< com.bcxin:bj-ferry >-------------------------
15:19:40 [INFO] Building bj-ferry 1.0.0
15:19:40 [INFO] --------------------------------[ jar ]---------------------------------
15:19:40 [WARNING] The artifact mysql:mysql-connector-java:jar:8.0.31 has been relocated to com.mysql:mysql-connector-j:jar:8.0.31
15:19:40 [INFO] 
15:19:40 [INFO] --- maven-clean-plugin:3.2.0:clean (default-clean) @ bj-ferry ---
15:19:40 [INFO] Deleting /data/jenkins/workspace/test-v5qy--ferry/target
15:19:40 [INFO] 
15:19:40 [INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ bj-ferry ---
15:19:41 [INFO] Using 'UTF-8' encoding to copy filtered resources.
15:19:41 [INFO] Using 'UTF-8' encoding to copy filtered properties files.
15:19:41 [INFO] Copying 6 resources
15:19:41 [INFO] Copying 9 resources
15:19:41 [INFO] 
15:19:41 [INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ bj-ferry ---
15:19:41 [INFO] Changes detected - recompiling the module!
15:19:41 [INFO] Compiling 95 source files to /data/jenkins/workspace/test-v5qy--ferry/target/classes
15:19:43 [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
15:19:43 [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
15:19:43 [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
15:19:43 [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
15:19:43 [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
15:19:43 [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
15:19:43 [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
15:19:43 [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.
15:19:43 [INFO] /data/jenkins/workspace/test-v5qy--ferry/src/main/java/com/bcxin/ferry/common/utils/IdGeneratorSnowflake.java: Recompile with -Xlint:deprecation for details.
15:19:43 [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.
15:19:43 [INFO] /data/jenkins/workspace/test-v5qy--ferry/src/main/java/com/bcxin/ferry/dtos/response/result/RespResult.java: Recompile with -Xlint:unchecked for details.
15:19:43 [INFO] 
15:19:43 [INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ bj-ferry ---
15:19:43 [INFO] Using 'UTF-8' encoding to copy filtered resources.
15:19:43 [INFO] Using 'UTF-8' encoding to copy filtered properties files.
15:19:43 [INFO] skip non existing resourceDirectory /data/jenkins/workspace/test-v5qy--ferry/src/test/resources
15:19:43 [INFO] 
15:19:43 [INFO] --- maven-compiler-plugin:3.10.1:testCompile (default-testCompile) @ bj-ferry ---
15:19:43 [INFO] No sources to compile
15:19:43 [INFO] 
15:19:43 [INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ bj-ferry ---
15:19:43 [INFO] Tests are skipped.
15:19:43 [INFO] 
15:19:43 [INFO] --- maven-jar-plugin:3.2.2:jar (default-jar) @ bj-ferry ---
15:19:44 [INFO] Building jar: /data/jenkins/workspace/test-v5qy--ferry/target/bj-ferry-1.0.0.jar
15:19:44 [INFO] 
15:19:44 [INFO] --- spring-boot-maven-plugin:2.7.5:repackage (repackage) @ bj-ferry ---
15:19:44 [INFO] Replacing main artifact with repackaged archive
15:19:44 [INFO] ------------------------------------------------------------------------
15:19:44 [INFO] BUILD SUCCESS
15:19:44 [INFO] ------------------------------------------------------------------------
15:19:44 [INFO] Total time:  4.522 s
15:19:44 [INFO] Finished at: 2024-07-01T15:19:44+08:00
15:19:44 [INFO] ------------------------------------------------------------------------
15:19:44 [WARNING] The requested profile "out-test" could not be activated because it does not exist.
15:19:44 + scp /data/jenkins/workspace/test-v5qy--ferry/target/bj-ferry-1.0.0.jar 172.20.0.160:/data/workspace/ferry
15:19:45 [SSH] script:
15:19:45 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"
15:19:45 JAVA_HOME="/usr/local/jdk1.8"
15:19:45 JAVA_CLASS="/usr/local/jdk1.8/lib"
15:19:45 HOME="/root"
15:19:45 
15:19:45 #JAVA
15:19:45 export JAVA_HOME=/usr/local/java
15:19:45 export JAVA_CLASS=$JAVA_HOME/lib
15:19:45 export PATH=$JAVA_HOME/bin:$PATH
15:19:45 
15:19:45 # 杀死进程
15:19:45 pid=$(ps -ef|grep bj-ferry-1.0.0.jar |grep -v grep|awk '{print $2}')
15:19:45 if [ $pid  ];then
15:19:45 	kill -9 $pid
15:19:45 fi
15:19:45 
15:19:45 sleep 5
15:19:45 
15:19:45 # 启动进程
15:19:45 cd /data/workspace/ferry
15:19:45 nohup java -Xms1024m -Xmx1024m -jar bj-ferry-1.0.0.jar --spring.profiles.active=out-test &> /dev/null   &
15:19:45 
15:19:45 [SSH] executing...
15:19:51 
15:19:51 [SSH] completed
15:19:51 [SSH] exit-status: 0
15:19:51 
15:19:51 Finished: SUCCESS