Skip to content
Draft
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: 2 additions & 2 deletions vars/distroVersion.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ String call(String distro, String branch) {
return ['el8': ['master': '8.8',
'2.4': '8.8',
'2.6': '8.8'],
'el9': ['master': '9.4',
'el9': ['master': '9.7',
'2.6': '9.4'],
'leap15': ['master': '15.6',
'2.4': '15.6',
Expand All @@ -48,7 +48,7 @@ assert(call('leap15', 'master') == '15.6')
assert(call('el8', '2.4') == '8.8')
assert(call('el8', '2.6') == '8.8')
assert(call('el8', 'master') == '8.8')
assert(call('el9', 'master') == '9.4')
assert(call('el9', 'master') == '9.7')
assert(call('el9', '2.6') == '9.4')

/* Uncomment to do further testing
Expand Down
9 changes: 9 additions & 0 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 @@ -136,6 +138,11 @@ 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'],
Expand All @@ -149,6 +156,8 @@ Map call(Map config = [:]) {
target_stash += '-' + stage_info['build_type']
}

println("target_stash = ${target_stash}")

List stashes = []
if (config['stashes']) {
stashes = config['stashes']
Expand Down