Skip to content

Commit

Permalink
Set default container back to jnlp, and just use the ruby one for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dtwaddle2-r7 committed Nov 17, 2023
1 parent d5fcb35 commit 24c4411
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pipeline {
agent {
kubernetes(
k8sAgent(name: 'ruby', rubyRuntime: '2.7', defaultContainer: 'ruby', idleMinutes: 0)
k8sAgent(name: 'ruby', rubyRuntime: '2.7', idleMinutes: 0)
)
}

Expand All @@ -14,15 +14,19 @@ pipeline {
stages {
stage('Install dependencies') {
steps {
sh 'bundle install'
sh 'gem install rake'
sh 'wget -O semver https://raw.githubusercontent.com/fsaintjacques/semver-tool/3.3.0/src/semver && chmod +x semver'
container('ruby') {
sh 'bundle install'
sh 'gem install rake'
sh 'wget -O semver https://raw.githubusercontent.com/fsaintjacques/semver-tool/3.3.0/src/semver && chmod +x semver'
}
}
}

stage('Run tests') {
steps {
sh 'bundle exec rake tests'
container('ruby') {
sh 'bundle exec rake tests'
}
}
}

Expand Down

0 comments on commit 24c4411

Please sign in to comment.