Skip to content

Console Output

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