Skip to content

Console Output

13:47:58 Started by upstream project "test-v5in-platform-source" build number 11
13:47:58 originally caused by:
13:47:58  Started by user admin
13:47:58 Running as SYSTEM
13:47:58 Building in workspace /data/jenkins/workspace/test-v5in-tenant-backend-task
13:47:58 [SSH] script:
13:47:58 PATH="/usr/local/maven:/usr/local/jdk1.8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/maven/bin:/root/bin"
13:47:58 JAVA_HOME="/usr/local/jdk1.8"
13:47:58 JAVA_CLASS="/usr/local/jdk1.8/lib"
13:47:58 HOME="/root"
13:47:58 
13:47:58 #JAVA
13:47:58 export JAVA_HOME=/usr/local/java
13:47:58 export JAVA_CLASS=$JAVA_HOME/lib
13:47:58 export PATH=$JAVA_HOME/bin:$PATH
13:47:58 
13:47:58 
13:47:58 JAR=tenant-backend-task-1.0.jar
13:47:58 PID=$(ps -ef|grep -v grep|grep ${JAR}|awk '{print $2}')
13:47:58 PID_STATUS=$(ps -ef|grep -v grep|grep ${JAR}|awk '{print $2}'|wc -l)
13:47:58 WORK="/data/workspace/test-v5in-platform-runing"
13:47:58 PACKAGE="/data/workspace/test-v5in-platform-source-package"
13:47:58 PARAMETER1="-Dlog4j2.formatMsgNoLookups=true"
13:47:58 PARAMETER2="--nacos.address=172.20.0.10 "
13:47:58 PARAMETER3="-Xms512m -Xmx512m"
13:47:58 LOGS=tenant-backend-task-error.log
13:47:58 
13:47:58 if [ $PID_STATUS -eq 1 ]
13:47:58 then
13:47:58 	kill  $PID
13:47:58 	sleep 15
13:47:58         kill -9 $PID
13:47:58 fi
13:47:58 
13:47:58 \cp  ${PACKAGE}/${JAR} ${WORK}/${JAR}
13:47:58 
13:47:58 cd ${WORK}
13:47:58 nohup java ${PARAMETER3}  -jar ${PARAMETER1} ${JAR} ${PARAMETER2} > /dev/null 2> $LOGS &
13:47:58 
13:47:58 #实际命令参考
13:47:58 #nohup java -Xms512m -Xmx512m -jar -Dlog4j2.formatMsgNoLookups=true tenant-backend-task-1.0.jar --nacos.address=172.20.0.10 > /dev/null 2>tenant-backend-task-error.log &
13:47:58 
13:47:58 
13:47:58 [SSH] executing...
13:48:14 bash: line 25: kill: (28067) - No such process
13:48:15 
13:48:15 [SSH] completed
13:48:15 [SSH] exit-status: 0
13:48:15 
13:48:15 Finished: SUCCESS