From 6dfbd0d4bc276b515abfef3a96f06f4cc7dd4cdc Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Tue, 7 Jan 2025 13:59:24 +0100 Subject: [PATCH] Only run Foreman testing on a single Ruby version This makes it easier switch and configure via variables, but also makes it consistent with generating the source. --- theforeman.org/pipelines/release/source/foreman.groovy | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/theforeman.org/pipelines/release/source/foreman.groovy b/theforeman.org/pipelines/release/source/foreman.groovy index 7d25af7a..e642b699 100644 --- a/theforeman.org/pipelines/release/source/foreman.groovy +++ b/theforeman.org/pipelines/release/source/foreman.groovy @@ -9,6 +9,7 @@ pipeline { } environment { + RUBY_VER = '2.7.6' BUNDLE_WITHOUT = 'development' RAILS_ENV = railsEnvForTask(TASK) DATABASE_URL = databaseUrlForTask(TASK) @@ -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' @@ -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) } } }