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?
sudo
rights to the Jenkins user, but simply making the destination writable by this user seems vastly superior.