Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion vars/provisionNodes.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,11 @@ Map call(Map config = [:]) {
provision_script += 'EL_7'
break
case 'el8':
case 'el9':
provision_script += 'EL_8'
break
case 'el9':
provision_script += 'EL_9'
break
case 'suse':
provision_script += 'LEAP_15'
break
Expand Down
5 changes: 3 additions & 2 deletions vars/unitPackages.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Method to return the list of Unit Testing packages
*/

String call() {
String call(Map args = [:]) {
String script = 'ci/unit/required_packages.sh'
if (!fileExists(script)) {
echo "${script} doesn't exist. " +
Expand All @@ -20,7 +20,8 @@ String call() {
}

Map stage_info = parseStageInfo()
String target = stage_info['target']
String target = args.get('image_version') ?:
(stage_info['target'] =~ /([a-z]+)(.*)/)[0][1] + stage_info['distro_version']
boolean quick_build = quickBuild()

if (target.startsWith('centos') || target.startsWith('el')) {
Expand Down
9 changes: 7 additions & 2 deletions vars/unitTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
* default is false.
*
* config['unstash_tests'] Un-stash -tests, default is true.
*
* config['image_version'] Image version to use for provisioning, e.g. el8.8, leap15.6, etc.
*/

Map afterTest(Map config, Map testRunInfo) {
Expand Down Expand Up @@ -137,11 +139,14 @@ Map call(Map config = [:]) {
}
}

String image_version = config.get('image_version') ?:
(stage_info['ci_target'] =~ /([a-z]+)(.*)/)[0][1] + stage_info['distro_version']

println("image_version = ${image_version}")
Map runData = provisionNodes(
NODELIST: nodelist,
node_count: stage_info['node_count'],
distro: (stage_info['ci_target'] =~
/([a-z]+)(.*)/)[0][1] + stage_info['distro_version'],
distro: image_version,
inst_repos: config.get('inst_repos', ''),
inst_rpms: inst_rpms)

Expand Down