Skip to content

Commit

Permalink
For Ruby 2.7 tests use dedicated bundler version
Browse files Browse the repository at this point in the history
Bundler 2.4.22 is last version to support Ruby 2.7 and needs to
be directly installed to prevent an error resolving the supported
version. This requirement occurred with the release of bundler 2.5.0.
  • Loading branch information
ehelms committed Dec 15, 2023
1 parent 64ceb53 commit 1d4dd26
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions theforeman.org/pipelines/lib/rvm.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ def gemset(name = null) {

def configureRVM(ruby, name = '', bundler_version = null) {
emptyGemset(ruby, name)

if (ruby == '2.7') {
bundler_version = '2.4.22'
}

if (bundler_version) {
withRVM(["gem install bundler -v '${bundler_version}' --no-document"], ruby, name)
} else {
Expand Down

0 comments on commit 1d4dd26

Please sign in to comment.