09:08:06 Started by user unknown or anonymous 09:08:06 Running as SYSTEM 09:08:06 Building in workspace /data/jenkins/workspace/BCX-data-sync 09:08:06 The recommended git tool is: NONE 09:08:06 using credential e9f27bcd-2741-48e3-b693-e66c2b7b3499 09:08:06 > /usr/local/git/bin/git rev-parse --resolve-git-dir /data/jenkins/workspace/BCX-data-sync/.git # timeout=10 09:08:06 Fetching changes from the remote Git repository 09:08:06 > /usr/local/git/bin/git config remote.origin.url https://gitlab.arsbaibaodun.com/third-party-system/bcx-data-sync.git # timeout=10 09:08:06 Fetching upstream changes from https://gitlab.arsbaibaodun.com/third-party-system/bcx-data-sync.git 09:08:06 > /usr/local/git/bin/git --version # timeout=10 09:08:06 > git --version # 'git version 2.43.0' 09:08:06 using GIT_ASKPASS to set credentials gitlab凭据 09:08:06 > /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 09:08:06 > /usr/local/git/bin/git rev-parse refs/remotes/origin/test^{commit} # timeout=10 09:08:06 Checking out Revision 9fa4e61818b994f263070022d7911f18f56a9b6e (refs/remotes/origin/test) 09:08:06 > /usr/local/git/bin/git config core.sparsecheckout # timeout=10 09:08:06 > /usr/local/git/bin/git checkout -f 9fa4e61818b994f263070022d7911f18f56a9b6e # timeout=10 09:08:06 Commit message: "测试本地域名转发" 09:08:06 > /usr/local/git/bin/git rev-list --no-walk 09eee2bac118d52e48da19cbbe42cbe40127f04c # timeout=10 09:08:06 [BCX-data-sync] $ /bin/sh -xe /data/apache-tomcat-jenkins/temp/jenkins17371682082548195501.sh 09:08:06 + cd /data/jenkins/workspace/BCX-data-sync 09:08:06 + mvn clean package -DskipTests 09:08:08 [INFO] Scanning for projects... 09:08:08 [INFO] 09:08:08 [INFO] ----------------------< com.bcxin:bcx-data-sync >----------------------- 09:08:08 [INFO] Building bcx-data-sync 1.0.0 09:08:08 [INFO] --------------------------------[ jar ]--------------------------------- 09:08:09 [WARNING] The artifact mysql:mysql-connector-java:jar:8.0.31 has been relocated to com.mysql:mysql-connector-j:jar:8.0.31 09:08:09 [INFO] 09:08:09 [INFO] --- maven-clean-plugin:3.2.0:clean (default-clean) @ bcx-data-sync --- 09:08:09 [INFO] Deleting /data/jenkins/workspace/BCX-data-sync/target 09:08:09 [INFO] 09:08:09 [INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ bcx-data-sync --- 09:08:09 [INFO] Using 'UTF-8' encoding to copy filtered resources. 09:08:09 [INFO] Using 'UTF-8' encoding to copy filtered properties files. 09:08:09 [INFO] Copying 4 resources 09:08:09 [INFO] Copying 51 resources 09:08:09 [INFO] 09:08:09 [INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ bcx-data-sync --- 09:08:09 [INFO] Changes detected - recompiling the module! 09:08:09 [INFO] Compiling 283 source files to /data/jenkins/workspace/BCX-data-sync/target/classes 09:08:15 [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. 09:08:15 [INFO] /data/jenkins/workspace/BCX-data-sync/src/main/java/com/bcxin/sync/configs/CustomTokenEnhancer.java: Recompile with -Xlint:deprecation for details. 09:08:15 [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. 09:08:15 [INFO] /data/jenkins/workspace/BCX-data-sync/src/main/java/com/bcxin/sync/dtos/response/result/RespResult.java: Recompile with -Xlint:unchecked for details. 09:08:15 [INFO] 09:08:15 [INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ bcx-data-sync --- 09:08:15 [INFO] Using 'UTF-8' encoding to copy filtered resources. 09:08:15 [INFO] Using 'UTF-8' encoding to copy filtered properties files. 09:08:15 [INFO] skip non existing resourceDirectory /data/jenkins/workspace/BCX-data-sync/src/test/resources 09:08:15 [INFO] 09:08:15 [INFO] --- maven-compiler-plugin:3.10.1:testCompile (default-testCompile) @ bcx-data-sync --- 09:08:15 [INFO] No sources to compile 09:08:15 [INFO] 09:08:15 [INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ bcx-data-sync --- 09:08:15 [INFO] Tests are skipped. 09:08:15 [INFO] 09:08:15 [INFO] --- maven-jar-plugin:3.2.2:jar (default-jar) @ bcx-data-sync --- 09:08:15 [INFO] Building jar: /data/jenkins/workspace/BCX-data-sync/target/bcx-data-sync-1.0.0.jar 09:08:15 [INFO] 09:08:15 [INFO] --- spring-boot-maven-plugin:2.7.5:repackage (repackage) @ bcx-data-sync --- 09:08:16 [INFO] Replacing main artifact with repackaged archive 09:08:16 [INFO] ------------------------------------------------------------------------ 09:08:16 [INFO] BUILD SUCCESS 09:08:16 [INFO] ------------------------------------------------------------------------ 09:08:16 [INFO] Total time: 8.632 s 09:08:16 [INFO] Finished at: 2025-05-14T09:08:16+08:00 09:08:16 [INFO] ------------------------------------------------------------------------ 09:08:16 + scp /data/jenkins/workspace/BCX-data-sync/target/bcx-data-sync-1.0.0.jar 172.20.0.7:/data/workspace/BCX-data-sync/ 09:08:17 [SSH] script: 09:08:17 ="" 09:08:17 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:/root/bin" 09:08:17 JAVA_HOME="/usr/local/jdk1.8" 09:08:17 JAVA_CLASS="/usr/local/jdk1.8/lib" 09:08:17 HOME="/root" 09:08:17 09:08:17 #JAVA 09:08:17 export JAVA_HOME=/usr/local/java 09:08:17 export JAVA_CLASS=$JAVA_HOME/lib 09:08:17 export PATH=$JAVA_HOME/bin:$PATH 09:08:17 09:08:17 # 杀死进程 09:08:17 pid=$(ps -ef|grep bcx-data-sync-1.0.0.jar |grep -v grep|awk '{print $2}') 09:08:17 if [ $pid ];then 09:08:17 kill -9 $pid 09:08:17 fi 09:08:17 09:08:17 sleep 5 09:08:17 09:08:17 # 启动进程 09:08:17 cd /data/workspace/BCX-data-sync/ 09:08:17 nohup java -Xms512m -Xmx512m -jar bcx-data-sync-1.0.0.jar --spring.profiles.active=test &> /dev/null & 09:08:17 09:08:17 [SSH] executing... 09:08:18 bash: =: command not found 09:08:24 09:08:24 [SSH] completed 09:08:24 [SSH] exit-status: 0 09:08:24 09:08:24 Finished: SUCCESS