14:58:55 Started by user unknown or anonymous
14:58:55 Running as SYSTEM
14:58:55 Building in workspace /data/jenkins/workspace/bcx-fdd
14:58:55 The recommended git tool is: NONE
14:58:55 using credential e9f27bcd-2741-48e3-b693-e66c2b7b3499
14:58:55 > /usr/local/git/bin/git rev-parse --resolve-git-dir /data/jenkins/workspace/bcx-fdd/.git # timeout=10
14:58:55 Fetching changes from the remote Git repository
14:58:55 > /usr/local/git/bin/git config remote.origin.url https://gitlab.arsbaibaodun.com/third-party-system/bcx-fdd.git # timeout=10
14:58:55 Fetching upstream changes from https://gitlab.arsbaibaodun.com/third-party-system/bcx-fdd.git
14:58:55 > /usr/local/git/bin/git --version # timeout=10
14:58:55 > git --version # 'git version 2.43.0'
14:58:55 using GIT_ASKPASS to set credentials gitlab凭据
14:58:55 > /usr/local/git/bin/git fetch --tags --force --progress -- https://gitlab.arsbaibaodun.com/third-party-system/bcx-fdd.git +refs/heads/*:refs/remotes/origin/* # timeout=10
14:58:56 > /usr/local/git/bin/git rev-parse refs/remotes/origin/test^{commit} # timeout=10
14:58:56 Checking out Revision ff43049fe9d9849498ff930a97147b72a5a30390 (refs/remotes/origin/test)
14:58:56 > /usr/local/git/bin/git config core.sparsecheckout # timeout=10
14:58:56 > /usr/local/git/bin/git checkout -f ff43049fe9d9849498ff930a97147b72a5a30390 # timeout=10
14:58:56 Commit message: "时间校验"
14:58:56 > /usr/local/git/bin/git rev-list --no-walk 4e949d4e2e43ecd8fcaed3ea6ffae23c1379df65 # timeout=10
14:58:56 [bcx-fdd] $ /bin/sh -xe /data/apache-tomcat-jenkins/temp/jenkins4512159721399913598.sh
14:58:56 + cd /data/jenkins/workspace/bcx-fdd/
14:58:56 + mvn clean package -DskipTests -Pout-test
14:58:57 [INFO] Scanning for projects...
14:58:57 [INFO]
14:58:57 [INFO] -------------------------< com.bcxin:bcx-fdd >--------------------------
14:58:57 [INFO] Building bcx-fdd 1.0.0
14:58:57 [INFO] --------------------------------[ jar ]---------------------------------
14:58:58 [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:58:58 [INFO]
14:58:58 [INFO] --- maven-clean-plugin:3.2.0:clean (default-clean) @ bcx-fdd ---
14:58:58 [INFO] Deleting /data/jenkins/workspace/bcx-fdd/target
14:58:58 [INFO]
14:58:58 [INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ bcx-fdd ---
14:58:58 [INFO] Using 'UTF-8' encoding to copy filtered resources.
14:58:58 [INFO] Using 'UTF-8' encoding to copy filtered properties files.
14:58:58 [INFO] Copying 4 resources
14:58:58 [INFO] Copying 3 resources
14:58:58 [INFO]
14:58:58 [INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ bcx-fdd ---
14:58:58 [INFO] Changes detected - recompiling the module!
14:58:58 [INFO] Compiling 53 source files to /data/jenkins/workspace/bcx-fdd/target/classes
14:59:00 [INFO] /data/jenkins/workspace/bcx-fdd/src/main/java/com/bcxin/fdd/common/utils/IdGeneratorSnowflake.java: /data/jenkins/workspace/bcx-fdd/src/main/java/com/bcxin/fdd/common/utils/IdGeneratorSnowflake.java uses or overrides a deprecated API.
14:59:00 [INFO] /data/jenkins/workspace/bcx-fdd/src/main/java/com/bcxin/fdd/common/utils/IdGeneratorSnowflake.java: Recompile with -Xlint:deprecation for details.
14:59:00 [INFO] /data/jenkins/workspace/bcx-fdd/src/main/java/com/bcxin/fdd/service/RedisService.java: Some input files use unchecked or unsafe operations.
14:59:00 [INFO] /data/jenkins/workspace/bcx-fdd/src/main/java/com/bcxin/fdd/service/RedisService.java: Recompile with -Xlint:unchecked for details.
14:59:00 [INFO]
14:59:00 [INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ bcx-fdd ---
14:59:00 [INFO] Using 'UTF-8' encoding to copy filtered resources.
14:59:00 [INFO] Using 'UTF-8' encoding to copy filtered properties files.
14:59:00 [INFO] skip non existing resourceDirectory /data/jenkins/workspace/bcx-fdd/src/test/resources
14:59:00 [INFO]
14:59:00 [INFO] --- maven-compiler-plugin:3.10.1:testCompile (default-testCompile) @ bcx-fdd ---
14:59:00 [INFO] No sources to compile
14:59:00 [INFO]
14:59:00 [INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ bcx-fdd ---
14:59:00 [INFO] Tests are skipped.
14:59:00 [INFO]
14:59:00 [INFO] --- maven-jar-plugin:3.2.2:jar (default-jar) @ bcx-fdd ---
14:59:01 [INFO] Building jar: /data/jenkins/workspace/bcx-fdd/target/bcx-fdd-1.0.0.jar
14:59:01 [INFO]
14:59:01 [INFO] --- spring-boot-maven-plugin:2.7.5:repackage (repackage) @ bcx-fdd ---
14:59:01 [INFO] Replacing main artifact with repackaged archive
14:59:01 [INFO] ------------------------------------------------------------------------
14:59:01 [INFO] BUILD SUCCESS
14:59:01 [INFO] ------------------------------------------------------------------------
14:59:01 [INFO] Total time: 4.313 s
14:59:01 [INFO] Finished at: 2024-08-23T14:59:01+08:00
14:59:01 [INFO] ------------------------------------------------------------------------
14:59:01 [WARNING] The requested profile "out-test" could not be activated because it does not exist.
14:59:01 + scp /data/jenkins/workspace/bcx-fdd/target/bcx-fdd-1.0.0.jar 172.20.0.160:/data/workspace/test-qy-bcx-fdd/
14:59:02 [SSH] script:
14:59:02 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:59:02 JAVA_HOME="/usr/local/jdk1.8"
14:59:02 JAVA_CLASS="/usr/local/jdk1.8/lib"
14:59:02 HOME="/root"
14:59:02
14:59:02 #JAVA
14:59:02 export JAVA_HOME=/usr/local/java
14:59:02 export JAVA_CLASS=$JAVA_HOME/lib
14:59:02 export PATH=$JAVA_HOME/bin:$PATH
14:59:02
14:59:02 # 杀死进程
14:59:02 pid=$(ps -ef|grep bcx-fdd-1.0.0.jar |grep -v grep|awk '{print $2}')
14:59:02 if [ $pid ];then
14:59:02 kill -9 $pid
14:59:02 fi
14:59:02
14:59:02 sleep 5
14:59:02 # 启动进程
14:59:02 cd /data/workspace/test-qy-bcx-fdd
14:59:02 nohup java -Xms1024m -Xmx1024m -jar bcx-fdd-1.0.0.jar --spring.profiles.active=test &> /dev/null &
14:59:02
14:59:02
14:59:02 [SSH] executing...
14:59:08
14:59:08 [SSH] completed
14:59:08 [SSH] exit-status: 0
14:59:08
14:59:08 Finished: SUCCESS