Jenkins Slave Permission Denied while copying slave.jar

前端 未结 5 1605
迷失自我
迷失自我 2021-02-15 12:21

I get a permissions denied but don\'t know why. From my jenkins master I was able to run the following command using ssh-rsa-key

scp /var/cache/jenkins/war/WEB-INF

5条回答
  •  名媛妹妹
    2021-02-15 13:07

    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.

提交回复
热议问题