Started by user unknown or anonymous Running as SYSTEM Building in workspace /data/jenkins/workspace/badp-bcxin-web-5.x-staff 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/badp-bcxin-web-5.x-staff/.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/badp-bcxin-web-5.x-staff.git # timeout=10 Fetching upstream changes from https://gitlab.arsbaibaodun.com/bcx_front/badp-bcxin-web-5.x-staff.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/badp-bcxin-web-5.x-staff.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 a0eebaed80c6d305a9027b6ad279b103bd30e314 (refs/remotes/origin/test) > /usr/local/git/bin/git config core.sparsecheckout # timeout=10 > /usr/local/git/bin/git checkout -f a0eebaed80c6d305a9027b6ad279b103bd30e314 # timeout=10 Commit message: "Merge branch 'master-优化部门问题' into test" > /usr/local/git/bin/git rev-list --no-walk a0eebaed80c6d305a9027b6ad279b103bd30e314 # timeout=10 [badp-bcxin-web-5.x-staff] $ /bin/sh -xe /data/apache-tomcat-jenkins/temp/jenkins4196429253637306718.sh + cd /data/jenkins/workspace/badp-bcxin-web-5.x-staff + npm install up to date in 3s + npm run build > ddm@0.1.0 build > vue-cli-service build Browserslist: caniuse-lite is outdated. Please run: npx update-browserslist-db@latest Why you should do it regularly: https://github.com/browserslist/update-db#readme - Building for production... Browserslist: caniuse-lite is outdated. Please run: npx update-browserslist-db@latest Why you should do it regularly: https://github.com/browserslist/update-db#readme ERROR Failed to compile with 1 error2:01:05 PM error in ./src/api/staffApi.js Syntax Error: Thread Loader (Worker 0) /data/jenkins/workspace/badp-bcxin-web-5.x-staff/src/api/staffApi.js: Identifier 'addRole' has already been declared. (1114:16) 1112 | 1113 | // 企业新增自定义角色 > 1114 | export function addRole(data,organizationId) { | ^ 1115 | return request({ 1116 | url: `/tenant/organizations/${organizationId}/role/add`, 1117 | method: "post", at parser.next () at normalizeFile.next () at run.next () at transform.next () @ ./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 @ ./src/views/ApproveOrg/index.vue?vue&type=script&lang=js @ ./src/views/ApproveOrg/index.vue @ ./src/views sync ^\.\/.*$ @ ./src/router/index.js @ ./src/main.js @ multi ./src/main.js ERROR Build failed with errors. Build step 'Execute shell' marked build as failure Finished: FAILURE