> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://support.stacktrack.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 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