I have recently started using Jenkins for integration. All was well until I was running jobs on master node without shell command but I have to run jobs on master as well as slave node which contains shell commands to. I am not able to run those shell commands as root user. I have tried
- Using
SSH Keys
. - Setting user name in shell commands.
- Using
sudo
.
I am getting permission denied
error every time I use any of the above methods.