Konfiguracja RVM i Jenkins
Jestem nowy w Jenkins CI. Instaluję RVM w moim zdalnym Jenkinsie i kiedy wykonuję poniżej powłoki.
<code>#!/bin/bash -x source ~/.bashrc rvm use [email protected] </code>
Dostaję następujące błędy.
<code>+ source /var/lib/jenkins/.bashrc ++ PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/var/lib/jenkins/.rvm/bin:/var/lib/jenkins/.rvm/bin + rvm use [email protected] RVM is not a function, selecting rubies with 'rvm use ...' will not work. You need to change your terminal settings to allow shell login. Please visit https://rvm.io/workflow/screen/ for example. </code>
Co to znaczy? Nie mam pojęcia. Proszę pomóż mi.
AKTUALIZOWANE: Próbowałem poniżej skryptu, ale nadal pojawiają się błędy:
<code>#!/bin/bash -x source /home/zeck/.bashrc [[ -s ".rvmrc" ]] && source .rvmrc export RAILS_ENV=test bundle install </code>
Błędy:
<code>/tmp/hudson457106939700368111.sh: line 5: bundle: command not found Build step 'Execute shell' marked build as failure Finished: FAILURE </code>
Powłoka budująca Jenkinsa nie wykrywa RVM, gemsetów i klejnotów. Co powinienem zrobić?
AKTUALIZACJA 2: Dlatego jenkins nie może wykryć rubinu.
<code>+ ruby -v /tmp/hudson2505951775163045158.sh: line 5: ruby: command not found Build step 'Execute shell' marked build as failure Finished: FAILUR </code>
Nie używam żadnego plunn jenkinsa i po prostu uruchamiam skrypt z sekcji Build-> Execute shell.