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?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b9b66891-874e-463b-bf59-450166c7e7f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to