Skip to content

Commit

Permalink
ruby: use selector for versions
Browse files Browse the repository at this point in the history
  • Loading branch information
avsej committed Feb 7, 2024
1 parent d2ee0e4 commit 0c99d2b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ruby/ruby-test-pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,20 @@ pipeline {
PLATFORM = 'sdkqe-centos7'
}
matrix {
when {
allOf {
expression { CB_VERSION_FILTER == 'all' || CB_VERSION_FILTER == CB_VERSION }
expression { CB_RUBY_VERSION_FILTER == 'all' || CB_RUBY_VERSION_FILTER == CB_RUBY_VERSION }
}
}
axes {
axis {
name 'CB_VERSION'
values CB_VERSION.isEmpty() ? ['7.2-stable', '7.1-release', '7.0-release', '6.6-release'] : CB_VERSION.split(',')
values '7.2-stable', '7.1-release', '7.0-release', '6.6-release'
}
axis {
name 'CB_RUBY_VERSION'
values CB_RUBY_VERSION.isEmpty() ? ['3.1', '3.2', '3.3'] : CB_RUBY_VERSION.split(',')
values '3.1', '3.2', '3.3'
}
}
agent { label PLATFORM }
Expand Down

0 comments on commit 0c99d2b

Please sign in to comment.