You can also edit the /etc/sysconfig/jenkins
file to make any changes to the environment variables, etc. I simply added source /etc/profile
to the end of the file. /etc/profile
has all all of the proper PATH
variables setup. When you do this, make sure you restart Jenkins
/etc/init.d/jenkins restart
We are running ZendServer CE which installs pear, phing, etc in a different path so this was helpful. Also, we don't get the LD_LIBRARY_PATH
errors we used to get with Oracle client and Jenkins.