Ruby CI on Jenkins - Installation steps
Steps for setting up Ruby CI on Jenkins running on EC2 micro instance, Ubuntu 12.04.
- sudo apt-get update
- Install jre/jdk
- sudo apt-get install openjdk-6-jre openjdk-6-jdk
- Install jenkins
- Switch user to jenkins user
- sudo su - jenkins
- Install git
- sudo apt-get git-core
- Set jenkins git user/email
- git config --global user.email "jenkins@none.com"
- git config --global user.name "jenkins"
- Install rvm and install/use ruby 1.9.2 as jenkins user (takes ages...)
- Setup jenkins project and add bash script build step to call rake (needs all lines to set paths, install bundler, get gems, run rake)
- #!/bin/bash
source ~/.bash_profile
rvm use 1.9.2
gem install bundler
bundle install
bundle exec rake
- #!/bin/bash
Call explicit rake tasks to change build steps to perform build/deploy tasks.