I want to build my grails project with Jenkins using GVM so that I can switch between versions easily depending on the version of grails that different projects need.
So I installed gvm and within gvm I installed 2 different grails versions.
It seems that gvm is installed under /root/.gvm/grails
When I configure jenkins I can choose between (default) which uses the GRAILS_HOME variable (I think) and the versions I have added manually by specifying the path to /root/.gvm/grails/<version>
When I choose a version that I manually added, I get /root/.gvm/grails/1.3.7/bin/grails doesn't exist
and when I choose (default) I get "could not found the command"
I think that has something to do with the folder that gvm has been installed to. Normally, from my experience, I would have thought that gvm was installed under /var/lib/gvm but that is not the case. Can someone explain why? I have the feeling that this is a permission problem and that gvm is only available for me as a user but not for the user that runs the tomcat and jenkins...