使用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权限的账号登录即可~


相关推荐
与君共勉121383 小时前
Jenkins-Gitlab 前端项目自动化部署
linux·服务器·git·gitlab·jenkins
嘟嘟Listing1 天前
设置jenkins时区记录
运维·jenkins
嘟嘟Listing1 天前
jenkins docker记录
java·运维·jenkins
MR·Feng1 天前
使用Electron将vue2项目打包为桌面exe安装包
前端·javascript·electron
weiabc2 天前
学习electron
javascript·学习·electron
szc17672 天前
docker 相关命令
java·docker·jenkins
咖喱鱼蛋2 天前
Ubuntu安装Electron环境
linux·ubuntu·electron
sinat_384241092 天前
在有网络连接的机器上打包 electron 及其依赖项,在没有网络连接的机器上安装这些离线包
javascript·arcgis·electron
牙牙7052 天前
Centos7安装Jenkins脚本一键部署
java·servlet·jenkins
灼烧的疯狂2 天前
K8S + Jenkins 做CICD
容器·kubernetes·jenkins