I moved jenkins from one server to another and while most things seem to be working I can no longer build on master.
When I run a job on master no bash profile is sourced so I'm missing all my paths. To debug, I setup a slave with the same credentials as master and it works just fine. I get the job to echo the username and machine name and they are the same whether running on "master" or on the slave which is setup on the same machine.
Any ideas on how to get jenkins to source the bash profile when running on master?
EDIT: I just realized that I don't encounter this issue if I launch jenkins from the command line manually. For example, the first command below works, the second doesn't:
$ nohup java -jar "${JENKINS_PATH}" --httpPort=${HTTP_PORT} > ${LOG_PATH} 2>&1 & # WORKS
$ /sbin/service jenkins start # DOESN'T WORK
The command to launch jenkins in the startup script is the same as what I'm running on the command line.