Jenkins Slave Permission Denied while copying slave.jar

你说的曾经没有我的故事 提交于 2019-12-03 14:58:30

It looks like the problem is tied to your Remote root directory setting. That needs to be the location of the slave.jar, as Jenkins will try to execute it from there.

As for the permissions, the Remote Root Directory (whatever you set it to) needs to be configured to allow Jenkins to access it.

Therefore, if you change your Remote root directory setting to be /var/jenkins/ in your case, it should launch the Jenkins slave successfully.

sudo chmod -R 777 /var/jenkins

harsh

Granting

sudo chmod -R 777 /var/lib/jenkins 

works for me

For anyone with an external drive, check that it's mounted correct:

drwxrwxrwx+  2 App   admin   68 Aug 25 19:33 Jenkins_Support
drwxrwxr-x  19 App   staff  714 Sep 25 10:46 Jenkins_Support 1

This might be a problem

If you changed a user to connect to slave, please also make sure slave destination directory is empty (not containing slave.jar copied there by previous user). This is kind of stupid, but costed me a time.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!