13:54:33Started by user admin13:54:33Running as SYSTEM
13:54:33Building in workspace /data/jenkins/workspace/push-server
13:54:33The recommended git tool is: NONE
13:54:33using credential e9f27bcd-2741-48e3-b693-e66c2b7b3499
13:54:33 > /usr/local/git/bin/git rev-parse --resolve-git-dir /data/jenkins/workspace/push-server/.git # timeout=10
13:54:33Fetching changes from the remote Git repository
13:54:33 > /usr/local/git/bin/git config remote.origin.url https://gitlab.arsbaibaodun.com/yehuo/push-server.git # timeout=10
13:54:33Fetching upstream changes from https://gitlab.arsbaibaodun.com/yehuo/push-server.git13:54:33 > /usr/local/git/bin/git --version # timeout=10
13:54:33 > git --version # 'git version 2.43.0'
13:54:33using GIT_ASKPASS to set credentials gitlab凭据
13:54:33 > /usr/local/git/bin/git fetch --tags --force --progress -- https://gitlab.arsbaibaodun.com/yehuo/push-server.git +refs/heads/*:refs/remotes/origin/* # timeout=10
13:54:33 > /usr/local/git/bin/git rev-parse refs/remotes/origin/main^{commit} # timeout=10
13:54:33Checking out Revision c9b7eae94503752321cc63af6e52ba2749233f5b (refs/remotes/origin/main)
13:54:33 > /usr/local/git/bin/git config core.sparsecheckout # timeout=10
13:54:33 > /usr/local/git/bin/git checkout -f c9b7eae94503752321cc63af6e52ba2749233f5b # timeout=10
13:54:33Commit message: "初始化"
13:54:33 > /usr/local/git/bin/git rev-list --no-walk 0fead4c9c29371fd7e57dba0425ae2abed05a682 # timeout=10
13:54:33[push-server] $ /bin/sh -xe /data/apache-tomcat-jenkins/temp/jenkins1613366284279267591.sh
13:54:33+ cd /data/jenkins/workspace/push-server
13:54:33+ mvn clean package
13:54:34[INFO] Scanning for projects...
13:54:34[WARNING]
13:54:34[WARNING] Some problems were encountered while building the effective model for cn.wildfirechat:push:jar:0.1.2
13:54:34[WARNING] 'dependencies.dependency.systemPath' for com.xiaomi.push:mipush-sdk-server:jar should not point at files within the project directory, ${project.basedir}/src/main/libs/MiPush_SDK_Server_2_2_19.jar will be unresolvable by dependent projects @ line 44, column 25
13:54:34[WARNING] 'dependencies.dependency.systemPath' for com.oppo.push:opush-server:jar should not point at files within the project directory, ${project.basedir}/src/main/libs/opush-server-sdk-1.0.4.jar will be unresolvable by dependent projects @ line 74, column 25
13:54:34[WARNING] 'dependencies.dependency.systemPath' for com.vivo.push.sdk:vPush-server-sdk:jar should not point at files within the project directory, ${project.basedir}/src/main/libs/vPush-server-sdk-1.0.jar will be unresolvable by dependent projects @ line 90, column 25
13:54:34[WARNING] 'dependencies.dependency.systemPath' for org.apache.http:httpclient:jar should not point at files within the project directory, ${project.basedir}/src/main/libs/httpclient-4.5.jar will be unresolvable by dependent projects @ line 134, column 25
13:54:34[WARNING] 'dependencies.dependency.systemPath' for org.apache.http:httpcore:jar should not point at files within the project directory, ${project.basedir}/src/main/libs/httpcore-4.4.1.jar will be unresolvable by dependent projects @ line 143, column 25
13:54:34[WARNING]
13:54:34[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
13:54:34[WARNING]
13:54:34[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
13:54:34[WARNING]
13:54:34[INFO]
13:54:34[INFO] ------------------------< cn.wildfirechat:push >------------------------
13:54:34[INFO] Building push 0.1.2
13:54:34[INFO] --------------------------------[ jar ]---------------------------------
13:54:35[INFO]
13:54:35[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ push ---
13:54:35[INFO] Deleting /data/jenkins/workspace/push-server/target
13:54:35[INFO]
13:54:35[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ push ---
13:54:35[INFO] Using 'UTF-8' encoding to copy filtered resources.
13:54:35[INFO] Copying 5 resources to BOOT-INF/lib/
13:54:35[INFO]
13:54:35[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ push ---
13:54:35[INFO] Changes detected - recompiling the module!
13:54:35[INFO] Compiling 27 source files to /data/jenkins/workspace/push-server/target/classes
13:54:37[INFO] /data/jenkins/workspace/push-server/src/main/java/cn/wildfirechat/push/android/hms/HMSPush.java: /data/jenkins/workspace/push-server/src/main/java/cn/wildfirechat/push/android/hms/HMSPush.java uses or overrides a deprecated API.
13:54:37[INFO] /data/jenkins/workspace/push-server/src/main/java/cn/wildfirechat/push/android/hms/HMSPush.java: Recompile with -Xlint:deprecation for details.
13:54:37[INFO] /data/jenkins/workspace/push-server/src/main/java/cn/wildfirechat/push/ios/ApnsServer.java: /data/jenkins/workspace/push-server/src/main/java/cn/wildfirechat/push/ios/ApnsServer.java uses unchecked or unsafe operations.
13:54:37[INFO] /data/jenkins/workspace/push-server/src/main/java/cn/wildfirechat/push/ios/ApnsServer.java: Recompile with -Xlint:unchecked for details.
13:54:37[INFO]
13:54:37[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ push ---
13:54:37[INFO] Using 'UTF-8' encoding to copy filtered resources.
13:54:37[INFO] skip non existing resourceDirectory /data/jenkins/workspace/push-server/src/test/resources
13:54:37[INFO]
13:54:37[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ push ---
13:54:37[INFO] No sources to compile
13:54:37[INFO]
13:54:37[INFO] --- maven-surefire-plugin:2.21.0:test (default-test) @ push ---
13:54:37[INFO] No tests to run.
13:54:37[INFO]
13:54:37[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ push ---
13:54:37[INFO] Building jar: /data/jenkins/workspace/push-server/target/push-0.1.2.jar
13:54:37[INFO]
13:54:37[INFO] --- spring-boot-maven-plugin:2.0.6.RELEASE:repackage (default) @ push ---
13:54:38[INFO] ------------------------------------------------------------------------
13:54:38[INFO] BUILD SUCCESS
13:54:38[INFO] ------------------------------------------------------------------------
13:54:38[INFO] Total time: 3.669 s
13:54:38[INFO] Finished at: 2023-12-26T13:54:38+08:00
13:54:38[INFO] ------------------------------------------------------------------------
13:54:38+ scp /data/jenkins/workspace/push-server/target/push-0.1.2.jar 172.20.0.54:/opt/push_server
13:54:38[SSH] script:
13:54:38PATH="/usr/local/jdk1.8/bin:/usr/local/maven:/usr/local/jdk1.8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/maven/bin:/root/bin"
13:54:38JAVA_HOME="/usr/local/jdk1.8"
13:54:38CLASSPATH=""
13:54:38HOME="/root"
13:54:3813:54:38#java
13:54:38export JAVA_HOME=/usr/local/java
13:54:38export CLASSPATH=$JAVA_HOME/lib/
13:54:38export PATH=$JAVA_HOME/bin:$PATH
13:54:3813:54:38kill -9 $(ps -ef|grep -v grep|grep push-0.1.2.jar|awk '{print $2}')
13:54:38sleep 5
13:54:38cd /opt/push_server
13:54:38nohup java -jar push-0.1.2.jar > push.log 2>&1 &
13:54:3813:54:38[SSH] executing...
13:54:4413:54:44[SSH] completed
13:54:44[SSH] exit-status: 0
13:54:4413:54:44Finished: SUCCESS