22:04:28 Started by user unknown or anonymous
22:04:28 Running as SYSTEM
22:04:28 Building in workspace /data/jenkins/workspace/front-v5-web
22:04:28 The recommended git tool is: NONE
22:04:28 using credential e9f27bcd-2741-48e3-b693-e66c2b7b3499
22:04:28 > /usr/local/git/bin/git rev-parse --resolve-git-dir /data/jenkins/workspace/front-v5-web/.git # timeout=10
22:04:28 Fetching changes from the remote Git repository
22:04:28 > /usr/local/git/bin/git config remote.origin.url https://gitlab.arsbaibaodun.com/bcx_front/front-v5-web.git # timeout=10
22:04:28 Fetching upstream changes from https://gitlab.arsbaibaodun.com/bcx_front/front-v5-web.git
22:04:28 > /usr/local/git/bin/git --version # timeout=10
22:04:28 > git --version # 'git version 2.43.0'
22:04:28 using GIT_ASKPASS to set credentials gitlab凭据
22:04:28 > /usr/local/git/bin/git fetch --tags --force --progress -- https://gitlab.arsbaibaodun.com/bcx_front/front-v5-web.git +refs/heads/*:refs/remotes/origin/* # timeout=10
22:04:29 > /usr/local/git/bin/git rev-parse refs/remotes/origin/test^{commit} # timeout=10
22:04:29 Checking out Revision 79f6a807050040bfcdc8615b082fdcc7b03a7864 (refs/remotes/origin/test)
22:04:29 > /usr/local/git/bin/git config core.sparsecheckout # timeout=10
22:04:29 > /usr/local/git/bin/git checkout -f 79f6a807050040bfcdc8615b082fdcc7b03a7864 # timeout=10
22:04:29 Commit message: "添加strip-indent依赖"
22:04:29 > /usr/local/git/bin/git rev-list --no-walk 79f6a807050040bfcdc8615b082fdcc7b03a7864 # timeout=10
22:04:29 [front-v5-web] $ /bin/sh -xe /data/apache-tomcat-jenkins/temp/jenkins8440737807676169320.sh
22:04:29 + rm -rf /data/workspace/attendsweb.test.baibaodun.cn/
22:04:29 + cp -r /data/jenkins/workspace/front-v5-web/dist/ /data/workspace/attendsweb.test.baibaodun.cn
22:04:29 + scp -r /data/jenkins/workspace/front-v5-web/dist 172.20.0.7:/data/tomcat/apache-tomcat-paspweb/run/ROOT
22:04:31 [SSH] script:
22:04:31 =""
22:04:31
22:04:31 #停止进程
22:04:31 kill -9 $(ps -ef|grep -v grep|grep apache-tomcat-paspweb | awk '{print $2}')
22:04:31 sleep 3
22:04:31
22:04:31 #文件备份
22:04:31 cd /data/tomcat/apache-tomcat-paspweb/
22:04:31 cp -r /data/tomcat/apache-tomcat-paspweb/webapps/ROOT /data/tomcat/apache-tomcat-paspweb/backup/
22:04:31
22:04:31 #删除旧文件
22:04:31 rm -rf /data/tomcat/apache-tomcat-paspweb/webapps/ROOT
22:04:31
22:04:31 #放入新文件
22:04:31 cp -r /data/tomcat/apache-tomcat-paspweb/run/ROOT /data/tomcat/apache-tomcat-paspweb/webapps/
22:04:31 sleep 3
22:04:31
22:04:31 #启动应用
22:04:31 cd /data/tomcat/apache-tomcat-paspweb/bin/
22:04:31 ./startup.sh
22:04:31
22:04:31
22:04:31
22:04:31
22:04:31 [SSH] executing...
22:04:31 bash: =: command not found
22:04:31 kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
22:04:39 Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
22:04:39 At least one of these environment variable is needed to run this program
22:04:39
22:04:39 [SSH] completed
22:04:39 [SSH] exit-status: 1
22:04:39
22:04:39 Build step 'Execute shell script on remote host using ssh' marked build as failure
22:04:39 Finished: FAILURE