Created
December 19, 2017 01:51
-
-
Save marzdgzmn/d3d1e78b2c94249b3c89fc48ffabf880 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###########jenkins script################################# | |
#!/bin/bash -l | |
# Use the correct ruby | |
echo "rvm use 'ruby@gemset'" | |
rvm use "ruby@gemset" | |
# Set "fail on error" in bash | |
echo "set -e" | |
set -e | |
echo $PATH | |
echo "type rvm | head -n 1" | |
type rvm | head -n 1 | |
# Do any setup | |
# e.g. possibly do 'rake db:migrate db:test:prepare' here | |
echo "bundle install" | |
bundle install | |
########################################################## | |
Output: | |
rise_base_base-Jenkinsfile-B7NUSIDCYBUUBAXZTX2OOZCWLGQA2NSYLAKY42AMIJZZQG6MPOEQ] Running shell script | |
rvm use 'ruby@gemset' | |
RVM is not a function, selecting rubies with 'rvm use ...' will not work. | |
You need to change your terminal emulator preferences to allow login shell. | |
Sometimes it is required to use `/bin/bash --login` as the command. | |
Please visit https://rvm.io/integration/gnome-terminal/ for an example. | |
set -e | |
/var/lib/jenkins/.rvm/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/var/lib/jenkins/.rvm/bin | |
type rvm | head -n 1 | |
rvm is hashed (/var/lib/jenkins/.rvm/bin/rvm) | |
bundle install | |
/var/lib/jenkins/workspace/rise_base_base-Jenkinsfile-B7NUSIDCYBUUBAXZTX2OOZCWLGQA2NSYLAKY42AMIJZZQG6MPOEQ@tmp/durable-0e2b93fd/script.sh: line 17: bundle: command not found | |
script returned exit code 127 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment