Last active
December 17, 2015 21:28
-
-
Save mackermedia/5674502 to your computer and use it in GitHub Desktop.
jenkins_user_setup.sh
This file contains 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
#!/bin/bash | |
# As user jenkins ( via `sudo su - jenkins` ): | |
sudo su -l jenkins | |
# not needed? | |
# ssh-keygen -q -t rsa -N "" -f .ssh/id_rsa | |
# rbenv | |
git clone git://github.com/sstephenson/rbenv.git /opt/rbenv | |
echo 'export RBENV_ROOT=/opt/rbenv | |
export PATH=$RBENV_ROOT/bin:/usr/local/bin/bin:$PATH | |
echo 'export PATH="$RBENV_ROOT/.rbenv/bin:$PATH"' >> ~/.profile | |
echo 'eval "$(rbenv init -)"' >> ~/.profile | |
exec $SHELL -l | |
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
rbenv install 2.0.0-p195 | |
rbenv install 1.9.3-p362 | |
rbenv install 1.9.3-p374 | |
rbenv install 1.9.3-p194 | |
rbenv install 1.9.3-p125 | |
rbenv install 1.9.2-p290 | |
rbenv install 1.8.7-p358 | |
rbenv rehash | |
git config --global user.email "developers+jenkins@viget.com" | |
git config --global user.name "Jenkins CI Server" | |
curl https://raw.github.com/gist/5674498/ssh_config >> /home/jenkins/.ssh/config | |
echo "Add private key in jenkins user .ssh directory named github with access to checkout github codes" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment