Skip to content

Console Output

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