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


相关推荐
lost_n_found6 小时前
Linux-CentOS从零搭建Jenkins(上),包教包会
jenkins
宁zz6 小时前
乌班图安装jenkins
运维·jenkins
FixBug_Nick6 小时前
使用Docker安装及使用最新版本的Jenkins
docker·容器·jenkins
LCY1331 天前
spring 中的DAO是什么
运维·git·jenkins
@PHARAOH1 天前
WHAT - Electron 系列(一)
前端·javascript·electron
loriloy1 天前
Electron崩溃问题排查指南
javascript·electron
wangjun51591 天前
jenkins 参数化发布到服务器 publish over ssh、label、Parameterized publishing
服务器·ssh·jenkins
遇见火星1 天前
自动化发布工具CI/CD实践Jenkins常用工具和插件的使用
运维·ci/cd·自动化·jenkins·自动化发布
黑蛋同志1 天前
Anolis系统下安装Jenkins
运维·jenkins
海鸥811 天前
为 Jenkins Agent 添加污点(Taint)容忍度(Toleration)
运维·jenkins