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