Skip to content

Console Output

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