15:50:42 Started by user unknown or anonymous
15:50:42 Running as SYSTEM
15:50:42 Building in workspace /data/jenkins/workspace/BCX-data-sync
15:50:42 The recommended git tool is: NONE
15:50:42 using credential e9f27bcd-2741-48e3-b693-e66c2b7b3499
15:50:42 > /usr/local/git/bin/git rev-parse --resolve-git-dir /data/jenkins/workspace/BCX-data-sync/.git # timeout=10
15:50:42 Fetching changes from the remote Git repository
15:50:42 > /usr/local/git/bin/git config remote.origin.url https://gitlab.arsbaibaodun.com/third-party-system/bcx-data-sync.git # timeout=10
15:50:42 Fetching upstream changes from https://gitlab.arsbaibaodun.com/third-party-system/bcx-data-sync.git
15:50:42 > /usr/local/git/bin/git --version # timeout=10
15:50:42 > git --version # 'git version 2.43.0'
15:50:42 using GIT_ASKPASS to set credentials gitlab凭据
15:50:42 > /usr/local/git/bin/git fetch --tags --force --progress -- https://gitlab.arsbaibaodun.com/third-party-system/bcx-data-sync.git +refs/heads/*:refs/remotes/origin/* # timeout=10
15:50:43 > /usr/local/git/bin/git rev-parse refs/remotes/origin/test^{commit} # timeout=10
15:50:43 Checking out Revision 556b7b1afb3b8731370114936e19e5830d8cb305 (refs/remotes/origin/test)
15:50:43 > /usr/local/git/bin/git config core.sparsecheckout # timeout=10
15:50:43 > /usr/local/git/bin/git checkout -f 556b7b1afb3b8731370114936e19e5830d8cb305 # timeout=10
15:50:43 Commit message: "Merge branch '2025-05-27-华为云监控对接' into test"
15:50:43 > /usr/local/git/bin/git rev-list --no-walk 99d3eb5009cfc32ae4311d62a355cbaf860fc0de # timeout=10
15:50:43 [BCX-data-sync] $ /bin/sh -xe /data/apache-tomcat-jenkins/temp/jenkins9943239265564043820.sh
15:50:43 + cd /data/jenkins/workspace/BCX-data-sync
15:50:43 + mvn clean package -DskipTests
15:50:44 [INFO] Scanning for projects...
15:50:44 [INFO]
15:50:44 [INFO] ----------------------< com.bcxin:bcx-data-sync >-----------------------
15:50:44 [INFO] Building bcx-data-sync 1.0.0
15:50:44 [INFO] --------------------------------[ jar ]---------------------------------
15:50:46 [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:50:46 [INFO]
15:50:46 [INFO] --- maven-clean-plugin:3.2.0:clean (default-clean) @ bcx-data-sync ---
15:50:46 [INFO] Deleting /data/jenkins/workspace/BCX-data-sync/target
15:50:46 [INFO]
15:50:46 [INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ bcx-data-sync ---
15:50:47 [INFO] Using 'UTF-8' encoding to copy filtered resources.
15:50:47 [INFO] Using 'UTF-8' encoding to copy filtered properties files.
15:50:47 [INFO] Copying 4 resources
15:50:47 [INFO] Copying 53 resources
15:50:47 [INFO]
15:50:47 [INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ bcx-data-sync ---
15:50:47 [INFO] Changes detected - recompiling the module!
15:50:47 [INFO] Compiling 314 source files to /data/jenkins/workspace/BCX-data-sync/target/classes
15:50:55 [INFO] /data/jenkins/workspace/BCX-data-sync/src/main/java/com/bcxin/sync/configs/CustomTokenEnhancer.java: Some input files use or override a deprecated API.
15:50:55 [INFO] /data/jenkins/workspace/BCX-data-sync/src/main/java/com/bcxin/sync/configs/CustomTokenEnhancer.java: Recompile with -Xlint:deprecation for details.
15:50:55 [INFO] /data/jenkins/workspace/BCX-data-sync/src/main/java/com/bcxin/sync/dtos/response/result/RespResult.java: Some input files use unchecked or unsafe operations.
15:50:55 [INFO] /data/jenkins/workspace/BCX-data-sync/src/main/java/com/bcxin/sync/dtos/response/result/RespResult.java: Recompile with -Xlint:unchecked for details.
15:50:55 [INFO]
15:50:55 [INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ bcx-data-sync ---
15:50:55 [INFO] Using 'UTF-8' encoding to copy filtered resources.
15:50:55 [INFO] Using 'UTF-8' encoding to copy filtered properties files.
15:50:55 [INFO] skip non existing resourceDirectory /data/jenkins/workspace/BCX-data-sync/src/test/resources
15:50:55 [INFO]
15:50:55 [INFO] --- maven-compiler-plugin:3.10.1:testCompile (default-testCompile) @ bcx-data-sync ---
15:50:55 [INFO] No sources to compile
15:50:55 [INFO]
15:50:55 [INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ bcx-data-sync ---
15:50:55 [INFO] Tests are skipped.
15:50:55 [INFO]
15:50:55 [INFO] --- maven-jar-plugin:3.2.2:jar (default-jar) @ bcx-data-sync ---
15:50:55 [INFO] Building jar: /data/jenkins/workspace/BCX-data-sync/target/bcx-data-sync-1.0.0.jar
15:50:55 [INFO]
15:50:55 [INFO] --- spring-boot-maven-plugin:2.7.5:repackage (repackage) @ bcx-data-sync ---
15:51:03 [INFO] Replacing main artifact with repackaged archive
15:51:03 [INFO] ------------------------------------------------------------------------
15:51:03 [INFO] BUILD SUCCESS
15:51:03 [INFO] ------------------------------------------------------------------------
15:51:03 [INFO] Total time: 18.504 s
15:51:03 [INFO] Finished at: 2025-06-23T15:51:03+08:00
15:51:03 [INFO] ------------------------------------------------------------------------
15:51:03 + scp /data/jenkins/workspace/BCX-data-sync/target/bcx-data-sync-1.0.0.jar 172.20.0.7:/data/workspace/BCX-data-sync/
15:51:10 [SSH] script:
15:51:10 =""
15:51:10 PATH="/usr/local/n/versions/node/16.0.0/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"
15:51:10 JAVA_HOME="/usr/local/jdk1.8"
15:51:10 JAVA_CLASS="/usr/local/jdk1.8/lib"
15:51:10 HOME="/root"
15:51:10
15:51:10 #JAVA
15:51:10 export JAVA_HOME=/usr/local/java
15:51:10 export JAVA_CLASS=$JAVA_HOME/lib
15:51:10 export PATH=$JAVA_HOME/bin:$PATH
15:51:10
15:51:10 # 杀死进程
15:51:10 pid=$(ps -ef|grep bcx-data-sync-1.0.0.jar |grep -v grep|awk '{print $2}')
15:51:10 if [ $pid ];then
15:51:10 kill -9 $pid
15:51:10 fi
15:51:10
15:51:10 sleep 5
15:51:10
15:51:10 # 启动进程
15:51:10 cd /data/workspace/BCX-data-sync/
15:51:10 nohup java -Xms512m -Xmx512m -jar bcx-data-sync-1.0.0.jar --spring.profiles.active=test &> /dev/null &
15:51:10
15:51:10 [SSH] executing...
15:51:10 bash: =: command not found
15:51:16
15:51:16 [SSH] completed
15:51:16 [SSH] exit-status: 0
15:51:16
15:51:16 Finished: SUCCESS