RVM and Jenkins setup

前端 未结 6 1185
悲哀的现实
悲哀的现实 2020-12-08 15:44

I am new to Jenkins CI. I\'m install RVM in my remote Jenkins and when I execute below shell.

#!/bin/bash -x
source ~/.bashrc
rvm use 1.9.3@rails-3.2.3
         


        
6条回答
  •  臣服心动
    2020-12-08 16:22

    Just add this code in your shell script, i think rvm is loading from your source so it should work else need to export PATH variable

    #!/bin/bash -l
    source ~/.bashrc
    rvm use 1.9.3@rails-3.2.3
    

    l is for login shel, if you include x then it would be for debugging too.

提交回复
热议问题