Skip to content

Commit 6dfbd0d

Browse files
committed
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.
1 parent bcb0476 commit 6dfbd0d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

theforeman.org/pipelines/release/source/foreman.groovy

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ pipeline {
99
}
1010

1111
environment {
12+
RUBY_VER = '2.7.6'
1213
BUNDLE_WITHOUT = 'development'
1314
RAILS_ENV = railsEnvForTask(TASK)
1415
DATABASE_URL = databaseUrlForTask(TASK)
@@ -20,10 +21,6 @@ pipeline {
2021
matrix {
2122
agent { label 'fast' }
2223
axes {
23-
axis {
24-
name 'RUBY_VER'
25-
values '2.7.6'
26-
}
2724
axis {
2825
name 'TASK'
2926
values 'jenkins:unit', 'jenkins:integration', 'assets:precompile'
@@ -79,7 +76,7 @@ pipeline {
7976
git url: git_url, branch: git_ref
8077
}
8178
script {
82-
sourcefile_paths = generate_sourcefiles(project_name: project_name, source_type: source_type)
79+
sourcefile_paths = generate_sourcefiles(project_name: project_name, source_type: source_type, ruby_version: RUBY_VER)
8380
}
8481
}
8582
}

0 commit comments

Comments
 (0)