14:04:38 Started by user unknown or anonymous
14:04:38 Running as SYSTEM
14:04:38 Building in workspace /data/jenkins/workspace/badp-bcxin-web-5.x-staff
14:04:38 The recommended git tool is: NONE
14:04:38 using credential e9f27bcd-2741-48e3-b693-e66c2b7b3499
14:04:38 > /usr/local/git/bin/git rev-parse --resolve-git-dir /data/jenkins/workspace/badp-bcxin-web-5.x-staff/.git # timeout=10
14:04:38 Fetching changes from the remote Git repository
14:04:38 > /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:04:38 Fetching upstream changes from https://gitlab.arsbaibaodun.com/bcx_front/badp-bcxin-web-5.x-staff.git
14:04:38 > /usr/local/git/bin/git --version # timeout=10
14:04:38 > git --version # 'git version 2.43.0'
14:04:38 using GIT_ASKPASS to set credentials gitlab凭据
14:04:38 > /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:04:38 > /usr/local/git/bin/git rev-parse refs/remotes/origin/test^{commit} # timeout=10
14:04:38 Checking out Revision 911b7ebe8603231a19eaec26328cde66f3dc9a83 (refs/remotes/origin/test)
14:04:38 > /usr/local/git/bin/git config core.sparsecheckout # timeout=10
14:04:38 > /usr/local/git/bin/git checkout -f 911b7ebe8603231a19eaec26328cde66f3dc9a83 # timeout=10
14:04:38 Commit message: "提交合并的角色信息"
14:04:38 > /usr/local/git/bin/git rev-list --no-walk a0eebaed80c6d305a9027b6ad279b103bd30e314 # timeout=10
14:04:38 [badp-bcxin-web-5.x-staff] $ /bin/sh -xe /data/apache-tomcat-jenkins/temp/jenkins1489853917335121558.sh
14:04:38 + cd /data/jenkins/workspace/badp-bcxin-web-5.x-staff
14:04:38 + npm install
14:04:41
14:04:41 up to date in 3s
14:04:41 + npm run build
14:04:41
14:04:41 > ddm@0.1.0 build
14:04:41 > vue-cli-service build
14:04:41
14:04:42 Browserslist: caniuse-lite is outdated. Please run:
14:04:42 npx update-browserslist-db@latest
14:04:42 Why you should do it regularly: https://github.com/browserslist/update-db#readme
14:04:42
14:04:42 - Building for production...
14:04:47 Browserslist: caniuse-lite is outdated. Please run:
14:04:47 npx update-browserslist-db@latest
14:04:47 Why you should do it regularly: https://github.com/browserslist/update-db#readme
14:04:54 ERROR Failed to compile with 1 error2:04:54 PM
14:04:54
14:04:54 error in ./src/api/staffApi.js
14:04:54
14:04:54 Syntax Error: Thread Loader (Worker 0)
14:04:54 /data/jenkins/workspace/badp-bcxin-web-5.x-staff/src/api/staffApi.js: Identifier 'editRole' has already been declared. (1114:16)
14:04:54
14:04:54 1112 |
14:04:54 1113 | // 企业编辑角色
14:04:54 > 1114 | export function editRole(data, organizationId) {
14:04:54 | ^
14:04:54 1115 | return request({
14:04:54 1116 | url: `/tenant/organizations/${organizationId}/role/edit`,
14:04:54 1117 | method: "post",
14:04:54 at parser.next (<anonymous>)
14:04:54 at normalizeFile.next (<anonymous>)
14:04:54 at run.next (<anonymous>)
14:04:54 at transform.next (<anonymous>)
14:04:54
14:04:54
14:04:54 @ ./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/ApproveDetail.vue?vue&type=script&lang=js 2:0-133 554:8-26 566:8-27 716:8-45 767:12-49 889:16-32
14:04:54 @ ./src/views/ApproveOrg/ApproveDetail.vue?vue&type=script&lang=js
14:04:54 @ ./src/views/ApproveOrg/ApproveDetail.vue
14:04:54 @ ./src/views sync ^\.\/.*$
14:04:54 @ ./src/router/index.js
14:04:54 @ ./src/main.js
14:04:54 @ multi ./src/main.js
14:04:54
14:04:54 ERROR Build failed with errors.
14:04:54 Build step 'Execute shell' marked build as failure
14:04:54 Finished: FAILURE