Skip to content

Console Output

18:07:28 Started by user unknown or anonymous
18:07:28 Running as SYSTEM
18:07:28 Building in workspace /data/jenkins/workspace/front-v5-web
18:07:28 The recommended git tool is: NONE
18:07:28 using credential e9f27bcd-2741-48e3-b693-e66c2b7b3499
18:07:28  > /usr/local/git/bin/git rev-parse --resolve-git-dir /data/jenkins/workspace/front-v5-web/.git # timeout=10
18:07:28 Fetching changes from the remote Git repository
18:07:28  > /usr/local/git/bin/git config remote.origin.url https://gitlab.arsbaibaodun.com/bcx_front/front-v5-web.git # timeout=10
18:07:28 Fetching upstream changes from https://gitlab.arsbaibaodun.com/bcx_front/front-v5-web.git
18:07:28  > /usr/local/git/bin/git --version # timeout=10
18:07:28  > git --version # 'git version 2.43.0'
18:07:28 using GIT_ASKPASS to set credentials gitlab凭据
18:07: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
18:07:28  > /usr/local/git/bin/git rev-parse refs/remotes/origin/test^{commit} # timeout=10
18:07:28 Checking out Revision ef3ca60284a8c60ac59d803e128f444859692aaf (refs/remotes/origin/test)
18:07:28  > /usr/local/git/bin/git config core.sparsecheckout # timeout=10
18:07:28  > /usr/local/git/bin/git checkout -f ef3ca60284a8c60ac59d803e128f444859692aaf # timeout=10
18:07:29 Commit message: "Merge branch 'feat-临保保险' into test"
18:07:29  > /usr/local/git/bin/git rev-list --no-walk b4ad52b6be727f958729201bb0b6278d5a912d89 # timeout=10
18:07:29 [front-v5-web] $ /bin/sh -xe /data/apache-tomcat-jenkins/temp/jenkins17455160778959488765.sh
18:07:29 + cd /data/jenkins/workspace/front-v5-web
18:07:29 + npm install --force
18:07:29 npm WARN using --force Recommended protections disabled.
18:07:34 
18:07:34 added 2 packages, removed 6 packages, and changed 9 packages in 6s
18:07:34 
18:07:34 197 packages are looking for funding
18:07:34   run `npm fund` for details
18:07:34 + npm run build:server
18:07:35 
18:07:35 > ant-design-pro@1.1.0 build:server
18:07:35 > cross-env ESLINT=none COMPRESS=true roadhog build
18:07:35 
18:07:40 Build failed: Cannot find module 'terser-webpack-plugin'
18:07:40 Require stack:
18:07:40 - /data/jenkins/workspace/front-v5-web/.webpackrc.js
18:07:40 - /data/jenkins/workspace/front-v5-web/node_modules/af-webpack/lib/getUserConfig/index.js
18:07:40 - /data/jenkins/workspace/front-v5-web/node_modules/af-webpack/getUserConfig.js
18:07:40 - /data/jenkins/workspace/front-v5-web/node_modules/roadhog/lib/build.js
18:07:40 - /data/jenkins/workspace/front-v5-web/node_modules/roadhog/lib/scripts/build.js
18:07:40 Error: Cannot find module 'terser-webpack-plugin'
18:07:40 Require stack:
18:07:40 - /data/jenkins/workspace/front-v5-web/.webpackrc.js
18:07:40 - /data/jenkins/workspace/front-v5-web/node_modules/af-webpack/lib/getUserConfig/index.js
18:07:40 - /data/jenkins/workspace/front-v5-web/node_modules/af-webpack/getUserConfig.js
18:07:40 - /data/jenkins/workspace/front-v5-web/node_modules/roadhog/lib/build.js
18:07:40 - /data/jenkins/workspace/front-v5-web/node_modules/roadhog/lib/scripts/build.js
18:07:40     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
18:07:40     at Function.Module._load (node:internal/modules/cjs/loader:773:27)
18:07:40     at Module.require (node:internal/modules/cjs/loader:1012:19)
18:07:40     at require (node:internal/modules/cjs/helpers:93:18)
18:07:40     at Object.<anonymous> (/data/jenkins/workspace/front-v5-web/.webpackrc.js:7:22)
18:07:40     at Module._compile (node:internal/modules/cjs/loader:1108:14)
18:07:40     at Module._compile (/data/jenkins/workspace/front-v5-web/node_modules/pirates/lib/index.js:129:24)
18:07:40     at Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
18:07:40     at Object.newLoader [as .js] (/data/jenkins/workspace/front-v5-web/node_modules/pirates/lib/index.js:134:7)
18:07:40     at Module.load (node:internal/modules/cjs/loader:988:32)
18:07:40     at Function.Module._load (node:internal/modules/cjs/loader:828:14)
18:07:40     at Module.require (node:internal/modules/cjs/loader:1012:19)
18:07:40     at require (node:internal/modules/cjs/helpers:93:18)
18:07:40     at getUserConfig (/data/jenkins/workspace/front-v5-web/node_modules/af-webpack/lib/getUserConfig/index.js:116:14)
18:07:40     at /data/jenkins/workspace/front-v5-web/node_modules/roadhog/lib/build.js:53:51
18:07:40     at new Promise (<anonymous>)
18:07:40     at Object._default [as default] (/data/jenkins/workspace/front-v5-web/node_modules/roadhog/lib/build.js:46:10)
18:07:40     at Object.<anonymous> (/data/jenkins/workspace/front-v5-web/node_modules/roadhog/lib/scripts/build.js:22:28)
18:07:40     at Module._compile (node:internal/modules/cjs/loader:1108:14)
18:07:40     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
18:07:40     at Module.load (node:internal/modules/cjs/loader:988:32)
18:07:40     at Function.Module._load (node:internal/modules/cjs/loader:828:14)
18:07:40     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
18:07:40     at node:internal/main/run_main_module:17:47 {
18:07:40   code: 'MODULE_NOT_FOUND',
18:07:40   requireStack: [
18:07:40     '/data/jenkins/workspace/front-v5-web/.webpackrc.js',
18:07:40     '/data/jenkins/workspace/front-v5-web/node_modules/af-webpack/lib/getUserConfig/index.js',
18:07:40     '/data/jenkins/workspace/front-v5-web/node_modules/af-webpack/getUserConfig.js',
18:07:40     '/data/jenkins/workspace/front-v5-web/node_modules/roadhog/lib/build.js',
18:07:40     '/data/jenkins/workspace/front-v5-web/node_modules/roadhog/lib/scripts/build.js'
18:07:40   ]
18:07:40 }
18:07:40 + rm -rf /data/workspace/attendsweb.test.baibaodun.cn/
18:07:40 + cp -r /data/jenkins/workspace/front-v5-web/dist/ /data/workspace/attendsweb.test.baibaodun.cn
18:07:41 + scp -r /data/jenkins/workspace/front-v5-web/dist 172.20.0.7:/data/tomcat/apache-tomcat-paspweb/run/ROOT
18:07:42 [SSH] script:
18:07:42 =""
18:07:42 
18:07:42 #停止进程
18:07:42 kill -9 $(ps -ef | grep -v grep | grep apache-tomcat-paspweb | awk '{print $2}')
18:07:42 sleep 3
18:07:42 
18:07:42 #文件备份
18:07:42 cd /data/tomcat/apache-tomcat-paspweb/
18:07:42 cp -rf /data/tomcat/apache-tomcat-paspweb/webapps/ROOT /data/tomcat/apache-tomcat-paspweb/backup/
18:07:42 
18:07:42 #删除旧文件
18:07:42 rm -rf /data/tomcat/apache-tomcat-paspweb/webapps/ROOT
18:07:42 
18:07:42 #放入新文件
18:07:42 cp -r /data/tomcat/apache-tomcat-paspweb/run/ROOT /data/tomcat/apache-tomcat-paspweb/webapps/
18:07:42 sleep 3
18:07:42 
18:07:42 #启动应用
18:07:42 cd /data/tomcat/apache-tomcat-paspweb/bin/
18:07:42 ./startup.sh
18:07:42 
18:07:42 
18:07:42 
18:07:42 
18:07:42 [SSH] executing...
18:07:42 bash: =: command not found
18:07:50 Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
18:07:50 At least one of these environment variable is needed to run this program
18:07:50 
18:07:50 [SSH] completed
18:07:50 [SSH] exit-status: 1
18:07:50 
18:07:50 Build step 'Execute shell script on remote host using ssh' marked build as failure
18:07:50 Finished: FAILURE