Skip to content

Console Output

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