I am trying to run a shell script in jenkins and have given all permissions on the file.
On the run, jenkins mentions the below error
Started by user admin Building in workspace /var/lib/jenkins/workspace/Test [Test] $ /bin/sh -xe /tmp/jenkins2660493526195024199.sh + /home/admin/Scripts/attest.sh /tmp/jenkins2660493526195024199.sh: line 2: /home/admin/Scripts/attest.sh: Permission denied Build step 'Execute shell' marked build as failure Finished: FAILURE
The file permissions are
[root@prod-server Scripts]# getfacl attest.sh # file: attest.sh # owner: jenkins # group: jenkins user::rwx group::rwx other::rwx
I am failing to understand why the file is not accessible even though when the file has full permissions. Any suggestions ?