Started by user unknown or anonymous Running as SYSTEM Building in workspace /data/jenkins/workspace/badp-bcxin-web-5.x-vue 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-vue/.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-vue.git # timeout=10 Fetching upstream changes from https://gitlab.arsbaibaodun.com/bcx_front/badp-bcxin-web-5.x-vue.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-vue.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 399fe24d88d5ae63289f6fbf58461760e80044fc (refs/remotes/origin/test) > /usr/local/git/bin/git config core.sparsecheckout # timeout=10 > /usr/local/git/bin/git checkout -f 399fe24d88d5ae63289f6fbf58461760e80044fc # timeout=10 Commit message: "Merge branch 'feat-百课堂' into test" > /usr/local/git/bin/git rev-list --no-walk 69a61312e1985270ec2ef91be4f26f0e044203af # timeout=10 [badp-bcxin-web-5.x-vue] $ /bin/sh -xe /data/apache-tomcat-jenkins/temp/jenkins10597306807621330136.sh + cd /data/jenkins/workspace/badp-bcxin-web-5.x-vue + npm install npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: 'gcoord@1.0.7', npm WARN EBADENGINE required: { node: '>=16.11.0' }, npm WARN EBADENGINE current: { node: 'v16.0.0', npm: '7.10.0' } npm WARN EBADENGINE } up to date in 2s 249 packages are looking for funding run `npm fund` for details + npm run build > hello-world@0.1.0 build > vue-cli-service build - 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 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 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 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 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 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 WARNING Compiled with 4 warnings12:09:20 PM Module Warning (from ./node_modules/eslint-loader/index.js): error: Unexpected console statement (no-console) at src/components/homeAllApp.vue:80:13: 78 | else { 79 | this.organizationLevels=organizationLevels.split(',')//obpm.config.js定义全局变量organizationLevels > 80 | console.log('organizationLevels',organizationLevels)//obpm.config.js定义全局变量organizationLevels | ^ 81 | if(this.organizationLevels&&this.organizationLevels.includes('Premium')){ 82 | this.appLevelsList() 83 | }else{ error: Unexpected console statement (no-console) at src/components/homeAllApp.vue:98:13: 96 | key: "" 97 | } > 98 | console.log(this.$listeners) | ^ 99 | this.addTab(param) 100 | }, 101 | applistIframe() {//查询应用列表 error: Unexpected console statement (no-console) at src/components/homeAllApp.vue:109:25: 107 | 108 | if (response.data && response.data.errmsg == "ok") { > 109 | console.log(response.data) | ^ 110 | if (response.data.data.data.length) { 111 | let arr = [] 112 | response.data.data.data.forEach((item, index) => { error: Unexpected console statement (no-console) at src/components/homeAllApp.vue:128:29: 126 | 127 | }) > 128 | console.log(arr) | ^ 129 | arr.sort((a, b) => { return Number(a.cateSort) - Number(b.cateSort) }) //分类排序cateSort 130 | 131 | const titleMap = {} error: Unexpected console statement (no-console) at src/components/homeAllApp.vue:189:29: 187 | } 188 | } > 189 | console.log(arr2) | ^ 190 | this.appcateArrList = arr2 191 | 192 | //前端缓存本地代码块--切换不同组织的所有应用列表 error: Unexpected console statement (no-console) at src/components/homeAllApp.vue:221:29: 219 | parsedData = JSON.parse(jsonString); 220 | } catch (e) { > 221 | console.warn('解析 resource.data 失败:', e, resource.data); | ^ 222 | // 如果解析失败,尝试使用正则表达式提取 223 | const iconMatch = resource.data.match(/icon:\s*['"]([^'"]+)['"]/); 224 | const urlMatch = resource.data.match(/url:\s*['"]([^'"]+)['"]/); error: Unexpected console statement (no-console) at src/components/homeAllApp.vue:294:33: 292 | } catch (e) { 293 | // 如果 URL 解析失败(可能是相对路径或特殊格式),使用字符串替换方式 > 294 | console.warn('URL 解析失败,使用字符串替换方式:', e, url); | ^ 295 | 296 | // 使用正则表达式替换或添加参数 297 | if (token) { error: Unexpected console statement (no-console) at src/components/homeAllApp.vue:321:21: 319 | 320 | const actionContent = url || resource.id || ''; > 321 | console.log('actionContent:', actionContent); | ^ 322 | 323 | // 构建 ico 字段(JSON字符串格式) 324 | const icoString = icon ? JSON.stringify({ error: Unexpected console statement (no-console) at src/components/homeAllApp.vue:388:13: 386 | }, 387 | async loadAppMenu(appId, name) {//点击应用列表查询左边应用菜单 > 388 | console.log(this.$parent.$parent.$parent.$parent) | ^ 389 | console.log('当前appId', appId) 390 | 391 | // 判断是否为第三方应用 error: Unexpected console statement (no-console) at src/components/homeAllApp.vue:389:13: 387 | async loadAppMenu(appId, name) {//点击应用列表查询左边应用菜单 388 | console.log(this.$parent.$parent.$parent.$parent) > 389 | console.log('当前appId', appId) | ^ 390 | 391 | // 判断是否为第三方应用 392 | if (appId && appId.startsWith('third_party')) { error: Unexpected console statement (no-console) at src/components/homeAllApp.vue:398:21: 396 | // 实际项目中可能需要根据具体业务逻辑获取 categoryId 397 | const categoryId = appId || 'default'; // 示例: third_party_category_123 > 398 | console.log('第三方应用类别ID:', categoryId); | ^ 399 | 400 | // 使用现有的 API 调用方式 401 | this.$api.getRbacCategoryResources(categoryId, { error: Unexpected console statement (no-console) at src/components/homeAllApp.vue:403:29: 401 | this.$api.getRbacCategoryResources(categoryId, { 402 | onSucess: (response) => { > 403 | console.log('第三方应用资源:', response); | ^ 404 | // 构建第三方应用菜单 405 | if (response && response.data && response.data.data) { 406 | // 注意:实际数据在 response.data.data 中 error: Unexpected console statement (no-console) at src/components/homeAllApp.vue:408:33: 406 | // 注意:实际数据在 response.data.data 中 407 | const menus = this.transformRbacResourcesToMenus(response.data.data); > 408 | console.log('转换后的菜单结构:', menus); | ^ 409 | 410 | // 将菜单数据存储到 Vuex store 中 411 | this.$store.commit('loadMenus', { appId: appId, menus: menus }); error: Unexpected console statement (no-console) at src/components/homeAllApp.vue:417:29: 415 | }, 416 | onError: (error) => { > 417 | console.error('获取第三方应用资源失败:', error); | ^ 418 | } 419 | }); 420 | error: Unexpected console statement (no-console) at src/components/homeAllApp.vue:424:21: 422 | return; 423 | } catch (error) { > 424 | console.error('获取第三方应用资源失败:', error); | ^ 425 | } 426 | } 427 | error: Unexpected console statement (no-console) at src/components/homeAllApp.vue:437:17: 435 | } 436 | if (appId == '__Hab04s0VNDPrjFZ3Xlo') {//挂图作战直接打开项目中心首页 > 437 | console.log(this.$parent.$parent) | ^ 438 | this.$parent.$parent.$parent.$parent.navtopmenuclick(1) 439 | return 440 | } error: Unexpected console statement (no-console) at src/components/homeAllApp.vue:446:17: 444 | 445 | if (appId == '__aNKPFCBuZfyQNzlnlZ9') { //商城pc前端入口 > 446 | console.log(this.$parent.$parent) | ^ 447 | this.$parent.$parent.$parent.$parent.navtopmenuclick(100) 448 | return 449 | } error: Unexpected console statement (no-console) at src/components/homeAllApp.vue:451:17: 449 | } 450 | if (appId == '__ZG0ZtjrEhvNbj2rlOsF') { //企业钱包前端入口 > 451 | console.log(this.$parent.$parent) | ^ 452 | this.$parent.$parent.$parent.$parent.navtopmenuclick(101) 453 | return 454 | } 18 errors found. Module Warning (from ./node_modules/eslint-loader/index.js): error: Unexpected console statement (no-console) at src/components/homeAllAppNew.vue:83:13: 81 | else { 82 | this.organizationLevels=organizationLevels.split(',')//obpm.config.js定义全局变量organizationLevels > 83 | console.log('organizationLevels',organizationLevels)//obpm.config.js定义全局变量organizationLevels | ^ 84 | if(this.organizationLevels&&this.organizationLevels.includes('Premium')){ 85 | this.appLevelsList() 86 | }else{ error: Unexpected console statement (no-console) at src/components/homeAllAppNew.vue:101:13: 99 | key: "" 100 | } > 101 | console.log(this.$listeners) | ^ 102 | this.addTab(param) 103 | }, 104 | applistIframe() {//查询应用列表 error: Unexpected console statement (no-console) at src/components/homeAllAppNew.vue:112:25: 110 | 111 | if (response.data && response.data.errmsg == "ok") { > 112 | console.log(response.data) | ^ 113 | if (response.data.data.data.length) { 114 | let arr = [] 115 | response.data.data.data.forEach((item, index) => { error: Unexpected console statement (no-console) at src/components/homeAllAppNew.vue:131:29: 129 | 130 | }) > 131 | console.log(arr) | ^ 132 | arr.sort((a, b) => { return Number(a.cateSort) - Number(b.cateSort) }) //分类排序cateSort 133 | 134 | const titleMap = {} error: Unexpected console statement (no-console) at src/components/homeAllAppNew.vue:192:29: 190 | } 191 | } > 192 | console.log(arr2) | ^ 193 | this.appcateArrList = arr2 194 | 195 | //前端缓存本地代码块--切换不同组织的所有应用列表 error: Unexpected console statement (no-console) at src/components/homeAllAppNew.vue:224:29: 222 | parsedData = JSON.parse(jsonString); 223 | } catch (e) { > 224 | console.warn('解析 resource.data 失败:', e, resource.data); | ^ 225 | // 如果解析失败,尝试使用正则表达式提取 226 | const iconMatch = resource.data.match(/icon:\s*['"]([^'"]+)['"]/); 227 | const urlMatch = resource.data.match(/url:\s*['"]([^'"]+)['"]/); error: Unexpected console statement (no-console) at src/components/homeAllAppNew.vue:297:33: 295 | } catch (e) { 296 | // 如果 URL 解析失败(可能是相对路径或特殊格式),使用字符串替换方式 > 297 | console.warn('URL 解析失败,使用字符串替换方式:', e, url); | ^ 298 | 299 | // 使用正则表达式替换或添加参数 300 | if (token) { error: Unexpected console statement (no-console) at src/components/homeAllAppNew.vue:324:21: 322 | 323 | const actionContent = url || resource.id || ''; > 324 | console.log('actionContent:', actionContent); | ^ 325 | 326 | // 构建 ico 字段(JSON字符串格式) 327 | const icoString = icon ? JSON.stringify({ error: Unexpected console statement (no-console) at src/components/homeAllAppNew.vue:391:13: 389 | }, 390 | loadAppMenu(appId, name) {//点击应用列表查询左边应用菜单 > 391 | console.log(this.$parent.$parent.$parent.$parent) | ^ 392 | console.log('当前appId', appId) 393 | 394 | // 判断是否为第三方应用 error: Unexpected console statement (no-console) at src/components/homeAllAppNew.vue:392:13: 390 | loadAppMenu(appId, name) {//点击应用列表查询左边应用菜单 391 | console.log(this.$parent.$parent.$parent.$parent) > 392 | console.log('当前appId', appId) | ^ 393 | 394 | // 判断是否为第三方应用 395 | if (appId && appId.startsWith('third_party')) { error: Unexpected console statement (no-console) at src/components/homeAllAppNew.vue:401:21: 399 | // 实际项目中可能需要根据具体业务逻辑获取 categoryId 400 | const categoryId = appId || 'default'; // 示例: third_party_category_123 > 401 | console.log('第三方应用类别ID:', categoryId); | ^ 402 | 403 | // 使用现有的 API 调用方式 404 | this.$api.getRbacCategoryResources(categoryId, { error: Unexpected console statement (no-console) at src/components/homeAllAppNew.vue:406:29: 404 | this.$api.getRbacCategoryResources(categoryId, { 405 | onSucess: (response) => { > 406 | console.log('第三方应用资源:', response); | ^ 407 | // 构建第三方应用菜单 408 | if (response && response.data && response.data.data) { 409 | // 注意:实际数据在 response.data.data 中 error: Unexpected console statement (no-console) at src/components/homeAllAppNew.vue:411:33: 409 | // 注意:实际数据在 response.data.data 中 410 | const menus = this.transformRbacResourcesToMenus(response.data.data); > 411 | console.log('转换后的菜单结构:', menus); | ^ 412 | 413 | // 将菜单数据存储到 Vuex store 中 414 | this.$store.commit('loadMenus', { appId: appId, menus: menus }); error: Unexpected console statement (no-console) at src/components/homeAllAppNew.vue:420:29: 418 | }, 419 | onError: (error) => { > 420 | console.error('获取第三方应用资源失败:', error); | ^ 421 | } 422 | }); 423 | error: Unexpected console statement (no-console) at src/components/homeAllAppNew.vue:427:21: 425 | return; 426 | } catch (error) { > 427 | console.error('获取第三方应用资源失败:', error); | ^ 428 | } 429 | } 430 | let httpsUrl = location.origin;//获取url各个环境地址--比如http://localhost:4000 error: Unexpected console statement (no-console) at src/components/homeAllAppNew.vue:439:17: 437 | } 438 | if (appId == '__Hab04s0VNDPrjFZ3Xlo') {//挂图作战直接打开项目中心首页 > 439 | console.log(this.$parent.$parent) | ^ 440 | this.$parent.$parent.$parent.$parent.navtopmenuclick(1) 441 | return 442 | } error: Unexpected console statement (no-console) at src/components/homeAllAppNew.vue:448:17: 446 | 447 | if (appId == '__aNKPFCBuZfyQNzlnlZ9') { //商城pc前端入口 > 448 | console.log(this.$parent.$parent) | ^ 449 | this.$parent.$parent.$parent.$parent.navtopmenuclick(100) 450 | return 451 | } error: Unexpected console statement (no-console) at src/components/homeAllAppNew.vue:453:17: 451 | } 452 | if (appId == '__ZG0ZtjrEhvNbj2rlOsF') { //企业钱包前端入口 > 453 | console.log(this.$parent.$parent) | ^ 454 | this.$parent.$parent.$parent.$parent.navtopmenuclick(101) 455 | return 456 | } error: Unexpected console statement (no-console) at src/components/homeAllAppNew.vue:458:17: 456 | } 457 | if (appId == '111') { //行业考培大屏 > 458 | console.log('行业考培大屏') | ^ 459 | const imgSrc = require('@/assets/images/bktImgs/大屏图片.jpg') 460 | this.$alert( 461 | `