Touch: cannot touch ‘test.txt’: Permission deniedīuild step 'Execute shell' marked build as failure ![]() I get the following error: + cd /apps/models/test_save_data_jenkins_R However when I run a build from Jenkins with the following commands in execute shell: cd /apps/models/test_save_data_jenkins_R & whoami & touch test.txt When I log in to the user “jenkins” from a terminal I’m able to create a new file in this folder using touch test.txt. So I have given the group “jenkins-group” rwx permissions, which in turn should give the user “jenkins” those permissions as well, since it has this group as a secondary. How do I properly allow user jenkins to write to a specific directory under user minecraft home directory?. I followed the recommended approach as seen in the link below, by creating a group having “rwx” permissions and adding the user running Jenkins to this group. The directory in question looks something like this when I ll: drwxrwxr-x 2 jenkins-group jenkins-group 68 Sep 3 13:01 test_save_data_jenkins_R ![]() Jenkins is being run by a user named “jenkins”, who belongs to a group called “jenkins-group”. I’m having trouble getting Jenkins to write to a directory, however I believe I have set the correct permissions.
0 Comments
Leave a Reply. |