Skip to content

Commit

Permalink
Refs #36345 - Drop Puppet 6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed May 3, 2023
1 parent 71e3ff5 commit 6ac876c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ pipeline {
}
}
}
stage("test ruby 2.5 & puppet 6") {
steps {
run_test(ruby: '2.5', puppet: '6.3')
}
}
stage("test ruby 2.7 & puppet 7") {
steps {
run_test(ruby: '2.7', puppet: '7')
Expand Down Expand Up @@ -63,8 +58,7 @@ def run_test(args) {
def gemset = "ruby-${ruby}-puppet-${puppet}"

try {
// Bundler 2.4 dropped Ruby 2.5 support
configureRVM(ruby, gemset, '< 2.4')
configureRVM(ruby, gemset)
withRVM(["PUPPET_VERSION='${puppet}' bundle install --without=development --jobs=5 --retry=5"], ruby, gemset)
archiveArtifacts(artifacts: 'Gemfile.lock')
withRVM(["PUPPET_VERSION='${puppet}' bundle exec rake spec"], ruby, gemset)
Expand Down
17 changes: 3 additions & 14 deletions theforeman.org/pipelines/test/foreman-installer.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,14 @@ pipeline {
axes {
axis {
name 'ruby'
values '2.5', '2.7'
values '2.7'
}
axis {
name 'PUPPET_VERSION'
values '6.0', '7.0'
values '7.0'
}
}
excludes {
exclude {
axis {
name 'ruby'
notValues '2.5'
}
axis {
name 'PUPPET_VERSION'
values '6.0'
}
}
exclude {
axis {
name 'ruby'
Expand All @@ -50,8 +40,7 @@ pipeline {
}
stage("Setup RVM") {
steps {
// Bundler 2.4 dropped support for Ruby 2.5
configureRVM(ruby, "${ruby}-${PUPPET_VERSION}", '< 2.4')
configureRVM(ruby, "${ruby}-${PUPPET_VERSION}")
}
}
stage('Install dependencies') {
Expand Down

0 comments on commit 6ac876c

Please sign in to comment.