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