Ruby Application CI on Ubuntu AMD64

Ruby Application CI on Ubuntu AMD64

Category: programming_languages
Platform: ubuntu_amd64
Tools Used: Ruby Programming Language
Description: Continuous integration for a Ruby application on Ubuntu AMD64.
Code:

pipeline {
agent { label 'medium && linux && x86 && economy' }
stages {
stage('Install Bundler') {
steps {
sh 'gem install bundler'
}
}
stage('Install Gems') {
steps {
sh 'bundle install'
}
}
stage('Test') {
steps {
sh 'bundle exec rspec'
}
}
stage('Deploy') {
steps {
sh 'cap production deploy'
}
}
}
}


Expected Outcome: Ruby application tested and deployed

Updated on: 15/08/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!