Tutorial => http://www.dsolc.com/blogs/13-continuous-integration-and-deployment-with-jenkins-and-ruby-on-rails
In addition to the jenkins build shell, you can use:
rspec spec --format html --out public/rspec_test.html
Gitlab Local::Test Jenkins Integration
jenkins user inside of server:: ssh-keygen
Sample