执行jenkins job在jenkins slave node找不到jenkins4318984297005532513.bat

来源:互联网 发布:如何自己反绑双手知乎 编辑:程序博客网 时间:2024/04/29 07:06

错误如下:

$ cmd /c call C:\Windows\TEMP\jenkins4318984297005532513.batThere are no entries in the list.System error 1312 has occurred.A specified logon session does not exist. It may already have been terminated.The system cannot find the path specified.Access is denied.Invalid drive specification0 File(s) copiedBuild step 'Execute Windows batch command' marked build as failureFinished: FAILURE


解决办法:

前提: jenkins agent installed as a service

进入services.msc ->  找到 ‘jenkins agent’ 服务, 右键点击 properties, 选择 ‘Log On’ , 勾选  ‘This account’, 输入admin的登陆信息


设置后再次提交jenkins job, log如下:

$ cmd /c call C:\Users\ADMINI~1\AppData\Local\Temp\jenkins7944426441619360202.batThere are no entries in the list.The command completed successfully.


原创粉丝点击