X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Flttng-modules%2Fmaster.groovy;h=9c9d123faea16dcc0a4b30d1149acf6e5bf3aacb;hb=ecb1e371ffaaf278e17ecafed44850a7cb775c59;hp=18e0a9fd7e38d1c63916f978949dccc7b55ec440;hpb=cff1edbb3ab1615a9071bdfd04ae7cfacd9f4457;p=lttng-ci.git diff --git a/scripts/lttng-modules/master.groovy b/scripts/lttng-modules/master.groovy index 18e0a9f..9c9d123 100644 --- a/scripts/lttng-modules/master.groovy +++ b/scripts/lttng-modules/master.groovy @@ -345,17 +345,22 @@ def kversionFactory = "" if (uversion != null) { kversionFactory = new UbuntuKVersion() switch (uversion) { + case 'jammy': + matchStrs = [ + ~/^refs\/tags\/(Ubuntu-5\.15\.0-\d{1,3}?\.[\d]+)$/, + ] + break + case 'focal': matchStrs = [ ~/^refs\/tags\/(Ubuntu-5\.4\.0-\d{1,3}?\.[\d]+)$/, - ~/^refs\/tags\/(Ubuntu-hwe-5\.8-5\.8\.0-.*_20\.04\.\d+)$/, + ~/^refs\/tags\/(Ubuntu-hwe-5\.13-5\.13\.0-.*_20\.04\.\d+)$/, ] break case 'bionic': matchStrs = [ ~/^refs\/tags\/(Ubuntu-4\.15\.0-\d{1,3}?\.[\d]+)$/, - ~/^refs\/tags\/(Ubuntu-hwe-5\.0-5\.0\.0-.*_18\.04\.\d+)$/, ~/^refs\/tags\/(Ubuntu-hwe-5\.4-5\.4\.0-.*_18\.04\.\d+)$/, ] break @@ -438,15 +443,19 @@ switch (kverfilter) { } break - case 'lts': + case 'lts-head': // Keep only the head of each LTS branch and the latest non-RC tag println('Filter kernel versions to keep only the latest point release of each lts branch and the current stable.') - def lts_44 = kversionFactory.factory("v4.4") - def lts_49 = kversionFactory.factory("v4.9") - def lts_414 = kversionFactory.factory("v4.14") - def lts_419 = kversionFactory.factory("v4.19") - def lts_54 = kversionFactory.factory("v5.4") + def lts_kversions = [] + lts_kversions.add(kversionFactory.factory("v4.4")) // SLTS until 2026 + lts_kversions.add(kversionFactory.factory("v4.9")) // LTS until January 2023 + lts_kversions.add(kversionFactory.factory("v4.14")) // LTS until January 2024 + lts_kversions.add(kversionFactory.factory("v4.19")) // LTS until December 2024 + lts_kversions.add(kversionFactory.factory("v5.4")) // LTS until December 2025 + lts_kversions.add(kversionFactory.factory("v5.10")) // LTS until December 2026 + lts_kversions.add(kversionFactory.factory("v5.15")) // LTS until October 2026 + lts_kversions.add(kversionFactory.factory("v6.1")) // LTS until December 2026 // First filter the head of each branch for (i = 0; i < kversions.size(); i++) { @@ -470,7 +479,15 @@ switch (kverfilter) { } // Prune non-LTS versions - if (!(curr.isSameStable(lts_44) || curr.isSameStable(lts_49) || curr.isSameStable(lts_414) || curr.isSameStable(lts_419) || curr.isSameStable(lts_54))) { + def keep = false + for (j = 0; j < lts_kversions.size(); j++) { + if (curr.isSameStable(lts_kversions[j])) { + keep = true + break + } + } + + if (!keep) { kversions.remove(i) i-- }