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