Skip to content

Commit

Permalink
Only run Foreman testing on a single Ruby version
Browse files Browse the repository at this point in the history
This makes it easier switch and configure via variables, but also makes
it consistent with generating the source.
  • Loading branch information
ekohl committed Jan 7, 2025
1 parent bcb0476 commit 6dfbd0d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions theforeman.org/pipelines/release/source/foreman.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pipeline {
}

environment {
RUBY_VER = '2.7.6'
BUNDLE_WITHOUT = 'development'
RAILS_ENV = railsEnvForTask(TASK)
DATABASE_URL = databaseUrlForTask(TASK)
Expand All @@ -20,10 +21,6 @@ pipeline {
matrix {
agent { label 'fast' }
axes {
axis {
name 'RUBY_VER'
values '2.7.6'
}
axis {
name 'TASK'
values 'jenkins:unit', 'jenkins:integration', 'assets:precompile'
Expand Down Expand Up @@ -79,7 +76,7 @@ pipeline {
git url: git_url, branch: git_ref
}
script {
sourcefile_paths = generate_sourcefiles(project_name: project_name, source_type: source_type)
sourcefile_paths = generate_sourcefiles(project_name: project_name, source_type: source_type, ruby_version: RUBY_VER)
}
}
}
Expand Down

0 comments on commit 6dfbd0d

Please sign in to comment.