I have a Jenkins job which runs as Jenkins user. The script it runs need to delete one folder which owns www-data user. Jenkins user has not sudo privileges and I dont want to give it to him. The command looks like:
rm -rf /var/www/deploy-old
I don't want to add sudo privilege for rm command to Jenkins, but only for whole command including path. Is it possible or not?
0 Answers