17:22:57 Started by user unknown or anonymous
17:22:57 Running as SYSTEM
17:22:57 Building in workspace /data/jenkins/workspace/test-v5qy-runtime-Update-Restart
17:22:57 [test-v5qy-runtime-Update-Restart] $ /bin/sh -xe /data/apache-tomcat-jenkins/temp/jenkins1752003478482636620.sh
17:22:57 + scp /data/jenkins/workspace/test-v5qy-source-back-02/src/badp-bcxin-5.x/obpm-runtime-consul/target/obpm-runtime-consul-5.x.nightbuild.jar 172.20.0.160:/data/workspace/test-v5qy-source-package/obpm-runtime.jar
17:22:59 [SSH] script:
17:22:59 =""
17:22: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"
17:22:59 JAVA_HOME="/usr/local/jdk1.8"
17:22:59 JAVA_CLASS="/usr/local/jdk1.8/lib"
17:22:59 HOME="/root"
17:22:59
17:22:59 #JAVA
17:22:59 export JAVA_HOME=/usr/local/java
17:22:59 export JAVA_CLASS=$JAVA_HOME/lib
17:22:59 export PATH=$JAVA_HOME/bin:$PATH
17:22:59
17:22:59 #源码包所在目录
17:22:59 PACKAGE=/data/workspace/test-v5qy-source-package
17:22:59
17:22:59 #工作目录
17:22:59 WORK=/data/workspace/test-v5qy-runing/runtime
17:22:59
17:22:59 JAR=obpm-runtime.jar
17:22:59
17:22:59
17:22:59 #启动参数
17:22:59 PARAMETER1="-Xloggc:runtime-gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -server -Xms1096m -Xmx4096m -XX:MaxDirectMemorySize=256m -jar -Dlog4j2.formatMsgNoLookups=true -Djavaagent:/data/soft/skywalking-agent/skywalking-agent/skywalking-agent.jar -DSW_AGENT_NAME=v5-runtime-instance -DSW_AGENT_COLLECTOR_BACKEND_SERVICES=172.20.0.38:11800 "
17:22:59 PARAMETER2=" --myapps.storage.root=/data/storage-merged --server.port=50001 --spring.cloud.consul.discovery.instance-id=obpm-runtime-instance-001 --spring.redis.host=127.0.0.1 --spring.redis.port=6379 --spring.datasource.url=jdbc:mysql://172.20.0.196:3306/obpm2?characterEncoding=UTF-8&serverTimezone=GMT%2B8 "
17:22:59
17:22:59 PARAMETER3="-server -Xms2048m -Xmx2048m -XX:MaxDirectMemorySize=256m -jar -Dlog4j2.formatMsgNoLookups=true "
17:22:59 PARAMETER4=" --myapps.storage.root=/data/storage-merged --server.port=50002 --spring.cloud.consul.discovery.instance-id=obpm-runtime-instance-002"
17:22:59
17:22:59 LOGS=runtime-error.log
17:22:59 LOGS1=runtime-error-2.log
17:22:59
17:22:59
17:22:59 #杀死进程
17:22:59 kill -9 $(ps -ef|grep -v grep|grep obpm-runtime.jar|awk '{print $2}')
17:22:59 sleep 3
17:22:59
17:22:59 #应用主目录
17:22:59 OBPM_DEMO=/data/storage-merged
17:22:59
17:22:59
17:22:59 #删除index文件
17:22:59 rm -f /data/storage-merged/workspace/*index
17:22:59
17:22:59 cp ${PACKAGE}/${JAR} ${WORK}/${JAR}
17:22:59 cd ${WORK}
17:22:59 nohup java ${PARAMETER1} -jar ${JAR} ${PARAMETER2} &> ${LOGS} &
17:22:59
17:22:59
17:22:59 #启动命令参考如下
17:22:59 #java -server -Xms4096m -Xmx4096m -jar -Dlog4j2.formatMsgNoLookups=true obpm-runtime.jar --myapps.refresh.cache.profile=test_qy --myapps.storage.root=/data/storage-merged --server.port=50001
17:22:59
17:22:59
17:22:59 [SSH] executing...
17:22:59 bash: =: 未找到命令
17:23:03
17:23:03 [SSH] completed
17:23:03 [SSH] exit-status: 0
17:23:03
17:23:03 HttpMethod: POST
17:23:03 URL: https://open.feishu.cn/open-apis/bot/v2/hook/ad752b87-b6ad-4b33-a49e-a7fbaf052088
17:23:03 Content-Type: application/json; charset=utf-8
17:23:03 Sending request to url: https://open.feishu.cn/open-apis/bot/v2/hook/ad752b87-b6ad-4b33-a49e-a7fbaf052088
17:23:03 Response Code: HTTP/1.1 200 OK
17:23:03 Success: Status code 200 is in the accepted range: 100:399
17:23:03 Finished: SUCCESS