使用Jenkins打包时执行失败,但手动执行没有问题如ERR_ELECTRON_BUILDER_CANNOT_EXECUTE

具体错误信息如:

log 复制代码
Error output:
Plugin not found, cannot call UAC::_
Error in macro _UAC_MakeLL_Cmp on macroline 2
Error in macro _UAC_IsInnerInstance on macroline 1
Error in macro _If on macroline 9
Error in macro FUNCTION_INSTALL_MODE_PAGE_FUNCTION on macroline 2
Error in macro PAGE_INSTALL_MODE on macroline 17
!include: error in script: "assistedInstaller.nsh" on line 70
Error in script "<stdin>" on line 110 -- aborting creation process

    at ChildProcess.<anonymous> (D:\.jenkins\workspace\erp-client-build-all\code\node_modules\builder-util\src\util.ts:250:14)
    at Object.onceWrapper (node:events:628:26)
    at ChildProcess.emit (node:events:513:28)
    at ChildProcess.cp.emit (D:\.jenkins\workspace\erp-client-build-all\code\node_modules\cross-spawn\lib\enoent.js:34:29)
    at maybeClose (node:internal/child_process:1100:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5) {
  exitCode: 1,
  alreadyLogged: false,
  code: 'ERR_ELECTRON_BUILDER_CANNOT_EXECUTE'
}

    at ChildProcess.exithandler (node:child_process:402:12)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1100:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5) {
  code: 4,
  killed: false,
  signal: null,
  cmd: 'z-update-client-pipeline.bat',

这个情况一般可能是权限的问题~

修改Jenkins服务的权限即可

如下图所示,修改为有admin权限的账号登录即可~


相关推荐
new出一个对象8 小时前
vue3+vite搭建脚手架项目本地运行electron桌面应用
前端·javascript·electron
明辉光焱8 小时前
使用yarn,如何编译打包electron?
前端·javascript·electron·node.js
云只上9 小时前
Electron + Vue3 开发桌面应用+附源码
前端·javascript·electron
许苑向上13 小时前
【Elasticsearch】Elasticsearch集成Spring Boot
spring boot·elasticsearch·jenkins
qq_4337169514 小时前
编写第一个 Appium 测试脚本:从安装到运行!
自动化测试·软件测试·jmeter·ci/cd·职场和发展·appium·jenkins
东方巴黎~Sunsiny17 小时前
Elasticsearch中什么是倒排索引?
大数据·elasticsearch·jenkins
fanxbl95718 小时前
Electron 项目中杀掉进程的不同方式
前端·javascript·electron
kehua_gao20 小时前
Jenkins常见问题
运维·jenkins
春天的菠菜20 小时前
【jenkins】jenkins使用pipeline配置django项目
运维·django·jenkins
Linux运维老纪20 小时前
Jenkins应用详解(Detailed Explanation of Jenkins Application)
linux·服务器·云计算·jenkins·运维开发·devops