I've got Jenkins running under Tomcat 6. It's running as user tomcat6, with a home directory of /usr/share/tomcat6. I would like to install rvm for this user so I can use it for testing, but I can't figure out ho - is it possible to install rvm for a service user? I tried running the rvm installation script as a build step for a project, here's what I got:
/tmp/tomcat6-tmp/hudson2846335381818356442.sh: 3: Syntax error: redirection unexpected Finished: FAILURE
I also tried a multi-user installation of rvm, but I couldn't get the tomcat6 user to use any rvm commands - it seemed like it didn't recognize that rvm was installed. I'd be grateful for any suggestions. Thanks.