Skip to content

Console Output

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