We are using Jenkins for building grails applications. Now, we would like to use it for builiding different projects based on different grails versions. But after we invoke gvm command in shell script. There is always error said: "could not found the command". Checked several articules, we know gvm is a function. Is there anyone knows how can we use it in a shell script for automatically building?
Not sure if this is what Marco meant, but you need to source the gvm-init.sh script from your own script. Otherwise you don't have access to the functions because they are not inherited by sub-shells (which is what your own script runs in).