Sono nuovo di Jenkins CI. Sto installando RVM nel mio Jenkins remoto e quando eseguo sotto shell.Impostazione RVM e Jenkins
#!/bin/bash -x
source ~/.bashrc
rvm use [email protected]
Ottengo errori seguenti.
+ 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.
Che cosa significa? Non ne ho idea Mi aiuti per favore.
AGGIORNAMENTO: Sto provato sotto sceneggiatura, ma ho ancora errori:
#!/bin/bash -x
source /home/zeck/.bashrc
[[ -s ".rvmrc" ]] && source .rvmrc
export RAILS_ENV=test
bundle install
Errori:
/tmp/hudson457106939700368111.sh: line 5: bundle: command not found
Build step 'Execute shell' marked build as failure
Finished: FAILURE
Jenkins costruire shell non in grado di rilevare RVM, gemsets e gemme. Cosa dovrei fare?
AGGIORNATO 2: Pertanto jenkins non è in grado di rilevare il rubino.
+ ruby -v
/tmp/hudson2505951775163045158.sh: line 5: ruby: command not found
Build step 'Execute shell' marked build as failure
Finished: FAILUR
non sto usando qualsiasi Jenkins plugn e io sono solo eseguire script da Build-> sezione shell Esegui.
Zeck, sto impazzendo a risolvere anche questo problema, come l'hai risolto ??? – Farooq