Issue
I have a "docker-jenkins" container with some configured tasks that in the post-build have to run a shell script that move the builded data to a new folder inside the container and then commit to SVN repo.
My problem is that the SH script is executed by "jenkins" user that has not root privileges so my script fails with "permission denied" error.
How can I grant more privileges to jenkins user? Or how can I run the SH script with root privileges?
I'm using Jenkins CI inside a docker container so I suppose that I have to run some docker commands to grant more privileges to jenkins user...
Any ideas?
Solution
Giving the correct permissions to the destination folder I can solve this kind of problem. SUDO rights are ok too but it could become a security problem.
Answered By - Enricosoft Answer Checked By - Marie Seifert (WPSolving Admin)