17:55:29 Started by upstream project "test-v5in-platform-source" build number 8 17:55:29 originally caused by: 17:55:29 Started by user admin 17:55:29 Running as SYSTEM 17:55:29 Building in workspace /data/jenkins/workspace/test-v5in-tenant-shared-rest 17:55:29 [SSH] script: 17:55:29 PATH="/usr/local/maven:/usr/local/jdk1.8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/maven/bin:/root/bin" 17:55:29 JAVA_HOME="/usr/local/jdk1.8" 17:55:29 JAVA_CLASS="/usr/local/jdk1.8/lib" 17:55:29 HOME="/root" 17:55:29 17:55:29 #JAVA 17:55:29 export JAVA_HOME=/usr/local/java 17:55:29 export JAVA_CLASS=$JAVA_HOME/lib 17:55:29 export PATH=$JAVA_HOME/bin:$PATH 17:55:29 17:55:29 JAR=tenant-shared-rest-web-api-1.0.jar 17:55:29 PID=$(ps -ef|grep -v grep|grep ${JAR}|awk '{print $2}') 17:55:29 PID_STATUS=$(ps -ef|grep -v grep|grep ${JAR}|awk '{print $2}'|wc -l) 17:55:29 WORK="/data/workspace/test-v5in-platform-runing" 17:55:29 PACKAGE="/data/workspace/test-v5in-platform-source-package" 17:55:29 PARAMETER1="-Dlog4j2.formatMsgNoLookups=true" 17:55:29 PARAMETER2="--server.port=8182 --nacos.address=172.20.0.10 " 17:55:29 PARAMETER3="-Xms512m -Xmx512m" 17:55:29 LOGS=tenant-shared-rest-web-error.log 17:55:29 17:55:29 if [ $PID_STATUS -eq 1 ] 17:55:29 then 17:55:29 kill -9 $PID 17:55:29 sleep 15 17:55:29 fi 17:55:29 17:55:29 \cp ${PACKAGE}/${JAR} ${WORK}/${JAR} 17:55:29 17:55:29 cd ${WORK} 17:55:29 nohup java ${PARAMETER3} -jar ${PARAMETER1} ${JAR} ${PARAMETER2} > /dev/null 2> $LOGS & 17:55:29 17:55:29 17:55:29 #实际命令参考 17:55:29 #nohup java -Xms512m -Xmx512m -jar -Dlog4j2.formatMsgNoLookups=true tenant-shared-rest-web-api-1.0.jar --server.port=8182 --nacos.address=172.20.0.10 > /dev/null 2>tenant-shared-rest-web-error.log & 17:55:29 17:55:29 [SSH] executing... 17:55:46 17:55:46 [SSH] completed 17:55:46 [SSH] exit-status: 0 17:55:46 17:55:46 Finished: SUCCESS