+TEST_OS = [
- 'openeuler aarch64 20.03',
- 'centos aarch64 7.6.1810',
- 'centos aarch64 7.8.2003',
- 'centos aarch64 8.1.1911', 'debian aarch64 sid'
Jihui, I wonder if we can support more general 'multi-field' matrix expansion logic in job.yaml, like this
os os_arch os_version: - openeuler aarch64 20.03 - centos aarch64 7.6.1810 - centos aarch64 7.8.2003
which will be split to 3 atom jobs with
os: openeuler os_arch: aarch64 os_version: 20.03
os: centos os_arch: aarch64 os_version: 7.6.1810
os: centos os_arch: aarch64 os_version: 7.8.2003
Thanks, Fengguang
+def get_os_array(os_mount)
- TEST_OS.each do | item |
- os_array = item.split.push(os_mount)
- submit_job(os_array)
- end
+end