Started by user 洪艺伟 Running as SYSTEM Building in workspace /data/jenkins/workspace/test-v5qy-autoferry 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/test-v5qy-autoferry/.git # timeout=10 Fetching changes from the remote Git repository > /usr/local/git/bin/git config remote.origin.url https://gitlab.arsbaibaodun.com/bcx_basic/auto-ferry.git # timeout=10 Fetching upstream changes from https://gitlab.arsbaibaodun.com/bcx_basic/auto-ferry.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/bcx_basic/auto-ferry.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > /usr/local/git/bin/git rev-parse refs/remotes/origin/main^{commit} # timeout=10 Checking out Revision b904b87665fe6b204481e47f5386e24d09b167fa (refs/remotes/origin/main) > /usr/local/git/bin/git config core.sparsecheckout # timeout=10 > /usr/local/git/bin/git checkout -f b904b87665fe6b204481e47f5386e24d09b167fa # timeout=10 Commit message: "Merge branch 'main-2025-09-24-增加摆渡工具请求时间与服务器时间校验判断' into 'main'" > /usr/local/git/bin/git rev-list --no-walk 8800f3a3fa7d6dfb8428cf40aac68c947e88f8dd # timeout=10 [test-v5qy-autoferry] $ /bin/sh -xe /data/apache-tomcat-jenkins/temp/jenkins1613228959828655163.sh + cd /data/jenkins/workspace/test-v5qy-autoferry + mvn clean install -DskipTests=true -Pout-te [INFO] Scanning for projects... [INFO] [INFO] ------------------------< com.bcxin:auto-ferry >------------------------ [INFO] Building auto-ferry 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) @ auto-ferry --- [INFO] Deleting /data/jenkins/workspace/test-v5qy-autoferry/target [INFO] [INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ auto-ferry --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Using 'UTF-8' encoding to copy filtered properties files. [INFO] Copying 9 resources [INFO] Copying 2 resources [INFO] [INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ auto-ferry --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 56 source files to /data/jenkins/workspace/test-v5qy-autoferry/target/classes [WARNING] /data/jenkins/workspace/test-v5qy-autoferry/src/main/java/com/bcxin/ferry/common/utils/Base64Util.java:[5,16] sun.misc.BASE64Decoder is internal proprietary API and may be removed in a future release [WARNING] /data/jenkins/workspace/test-v5qy-autoferry/src/main/java/com/bcxin/ferry/common/utils/Base64Util.java:[5,16] sun.misc.BASE64Decoder is internal proprietary API and may be removed in a future release [WARNING] /data/jenkins/workspace/test-v5qy-autoferry/src/main/java/com/bcxin/ferry/common/utils/Base64Util.java:[5,16] sun.misc.BASE64Decoder is internal proprietary API and may be removed in a future release [WARNING] /data/jenkins/workspace/test-v5qy-autoferry/src/main/java/com/bcxin/ferry/common/utils/Base64Util.java:[5,16] sun.misc.BASE64Decoder is internal proprietary API and may be removed in a future release [WARNING] /data/jenkins/workspace/test-v5qy-autoferry/src/main/java/com/bcxin/ferry/common/utils/Base64Util.java:[5,16] sun.misc.BASE64Decoder is internal proprietary API and may be removed in a future release [WARNING] /data/jenkins/workspace/test-v5qy-autoferry/src/main/java/com/bcxin/ferry/common/utils/Base64Util.java:[39,13] sun.misc.BASE64Decoder is internal proprietary API and may be removed in a future release [WARNING] /data/jenkins/workspace/test-v5qy-autoferry/src/main/java/com/bcxin/ferry/common/utils/Base64Util.java:[39,47] sun.misc.BASE64Decoder is internal proprietary API and may be removed in a future release [INFO] /data/jenkins/workspace/test-v5qy-autoferry/src/main/java/com/bcxin/ferry/common/exception/GlobalExceptionHandler.java: Some input files use unchecked or unsafe operations. [INFO] /data/jenkins/workspace/test-v5qy-autoferry/src/main/java/com/bcxin/ferry/common/exception/GlobalExceptionHandler.java: Recompile with -Xlint:unchecked for details. [INFO] [INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ auto-ferry --- [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/test-v5qy-autoferry/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.10.1:testCompile (default-testCompile) @ auto-ferry --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ auto-ferry --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-jar-plugin:3.2.2:jar (default-jar) @ auto-ferry --- [INFO] Building jar: /data/jenkins/workspace/test-v5qy-autoferry/target/auto-ferry-1.0.0.jar [INFO] [INFO] --- spring-boot-maven-plugin:2.7.5:repackage (repackage) @ auto-ferry --- [INFO] Replacing main artifact with repackaged archive [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ auto-ferry --- [INFO] Installing /data/jenkins/workspace/test-v5qy-autoferry/target/auto-ferry-1.0.0.jar to /Users/linchunpeng/maven/repository/com/bcxin/auto-ferry/1.0.0/auto-ferry-1.0.0.jar [INFO] Installing /data/jenkins/workspace/test-v5qy-autoferry/pom.xml to /Users/linchunpeng/maven/repository/com/bcxin/auto-ferry/1.0.0/auto-ferry-1.0.0.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.196 s [INFO] Finished at: 2025-09-26T09:39:12+08:00 [INFO] ------------------------------------------------------------------------ [WARNING] The requested profile "out-te" could not be activated because it does not exist. + scp /data/jenkins/workspace/test-v5qy-autoferry/target/auto-ferry-1.0.0.jar 172.20.0.160:/data/workspace/auto-ferry/ [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" 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 auto-ferry-1.0.0.jar |grep -v grep|awk '{print $2}') if [ $pid -ne 0 ];then kill -9 $pid fi sleep 5 # 启动进程 cd /data/workspace/auto-ferry/ nohup java -Xms256m -Xmx256m -jar -Dlog4j2.formatMsgNoLookups=true auto-ferry-1.0.0.jar --spring.profiles.active=out-te > autoferry.log 2>&1 & [SSH] executing... bash: =: 未找到命令 [SSH] completed [SSH] exit-status: 0 Finished: SUCCESS