Skip to content

Console Output

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