I am running job in Jenkins with Execute shell like this
whoami
php /path/to/vendor/phpunit/phpunit/phpunit --log-junit /path/to/results/phpunit/phpunit.xml /path/to/tests/SeleniumTest.php
But it failed with php error 'failed to open stream: Permission denied in ...' so its trying to include file and doesnt have permision to it.
When i switch to jenkins user (su - jenkins) and run exactly same command then it works, just from jenkins it doesnt have permission.
Anyone have a clue how to fix it?