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