Skip to content

Console Output

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