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