Issue
I'm using the GIT plugin in Jenkins to deploy a few websites to my CentOS server. This works great pretty much out of the box. The only thing I'm missing is that I want to set the permissions on certain folders (like upload folders) to something else after deployment.
What is the best way to go about that? I have used phing in other projects and that works great with a custom shell script. However, I'd like to avoid using phing just to set the permissions right on my folders. If possible, I'd like to do it in the GIT job itself, but I'm not sure that's possible with jenkins.
What would you suggest?
Solution
I don't think Git 'remembers' permissions - users, groups etc will be different on the different machines it is installed on anyway. Do you have SSH from Jenkins to the server or is Jenkins running on the server? If that is the case you could issue some (remote) bash chmod commands.
Answered By - Simon Groenewolt