Skip to content

Console Output

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