14:00:48 Started by user unknown or anonymous
14:00:48 Running as SYSTEM
14:00:48 Building in workspace /data/jenkins/workspace/badp-bcxin-web-5.x-staff
14:00:48 The recommended git tool is: NONE
14:00:48 using credential e9f27bcd-2741-48e3-b693-e66c2b7b3499
14:00:48 > /usr/local/git/bin/git rev-parse --resolve-git-dir /data/jenkins/workspace/badp-bcxin-web-5.x-staff/.git # timeout=10
14:00:48 Fetching changes from the remote Git repository
14:00:48 > /usr/local/git/bin/git config remote.origin.url https://gitlab.arsbaibaodun.com/bcx_front/badp-bcxin-web-5.x-staff.git # timeout=10
14:00:48 Fetching upstream changes from https://gitlab.arsbaibaodun.com/bcx_front/badp-bcxin-web-5.x-staff.git
14:00:48 > /usr/local/git/bin/git --version # timeout=10
14:00:48 > git --version # 'git version 2.43.0'
14:00:48 using GIT_ASKPASS to set credentials gitlab凭据
14:00:48 > /usr/local/git/bin/git fetch --tags --force --progress -- https://gitlab.arsbaibaodun.com/bcx_front/badp-bcxin-web-5.x-staff.git +refs/heads/*:refs/remotes/origin/* # timeout=10
14:00:48 > /usr/local/git/bin/git rev-parse refs/remotes/origin/test^{commit} # timeout=10
14:00:48 Checking out Revision a0eebaed80c6d305a9027b6ad279b103bd30e314 (refs/remotes/origin/test)
14:00:48 > /usr/local/git/bin/git config core.sparsecheckout # timeout=10
14:00:48 > /usr/local/git/bin/git checkout -f a0eebaed80c6d305a9027b6ad279b103bd30e314 # timeout=10
14:00:48 Commit message: "Merge branch 'master-优化部门问题' into test"
14:00:48 > /usr/local/git/bin/git rev-list --no-walk a0eebaed80c6d305a9027b6ad279b103bd30e314 # timeout=10
14:00:48 [badp-bcxin-web-5.x-staff] $ /bin/sh -xe /data/apache-tomcat-jenkins/temp/jenkins4196429253637306718.sh
14:00:48 + cd /data/jenkins/workspace/badp-bcxin-web-5.x-staff
14:00:48 + npm install
14:00:51
14:00:51 up to date in 3s
14:00:51 + npm run build
14:00:51
14:00:51 > ddm@0.1.0 build
14:00:51 > vue-cli-service build
14:00:51
14:00:52 Browserslist: caniuse-lite is outdated. Please run:
14:00:52 npx update-browserslist-db@latest
14:00:52 Why you should do it regularly: https://github.com/browserslist/update-db#readme
14:00:52
14:00:52 - Building for production...
14:00:58 Browserslist: caniuse-lite is outdated. Please run:
14:00:58 npx update-browserslist-db@latest
14:00:58 Why you should do it regularly: https://github.com/browserslist/update-db#readme
14:01:05 ERROR Failed to compile with 1 error2:01:05 PM
14:01:05
14:01:05 error in ./src/api/staffApi.js
14:01:05
14:01:05 Syntax Error: Thread Loader (Worker 0)
14:01:05 /data/jenkins/workspace/badp-bcxin-web-5.x-staff/src/api/staffApi.js: Identifier 'addRole' has already been declared. (1114:16)
14:01:05
14:01:05 1112 |
14:01:05 1113 | // 企业新增自定义角色
14:01:05 > 1114 | export function addRole(data,organizationId) {
14:01:05 | ^
14:01:05 1115 | return request({
14:01:05 1116 | url: `/tenant/organizations/${organizationId}/role/add`,
14:01:05 1117 | method: "post",
14:01:05 at parser.next (<anonymous>)
14:01:05 at normalizeFile.next (<anonymous>)
14:01:05 at run.next (<anonymous>)
14:01:05 at transform.next (<anonymous>)
14:01:05
14:01:05
14:01:05 @ ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/ApproveOrg/index.vue?vue&type=script&lang=js 5:0-216 156:8-26 170:8-27 203:6-33 236:6-28 250:6-26 269:6-28 293:6-28 369:10-27 436:6-26
14:01:05 @ ./src/views/ApproveOrg/index.vue?vue&type=script&lang=js
14:01:05 @ ./src/views/ApproveOrg/index.vue
14:01:05 @ ./src/views sync ^\.\/.*$
14:01:05 @ ./src/router/index.js
14:01:05 @ ./src/main.js
14:01:05 @ multi ./src/main.js
14:01:05
14:01:05 ERROR Build failed with errors.
14:01:05 Build step 'Execute shell' marked build as failure
14:01:05 Finished: FAILURE