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

错误如下:

$ cmd /c call C:\Windows\TEMP\jenkins4318984297005532513.bat
There 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 specification
0 File(s) copied
Build step 'Execute Windows batch command' marked build as failure
Finished: 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.bat
There are no entries in the list.

The command completed successfully.


你可能感兴趣的:(jenkins)