diff options
Diffstat (limited to 'afdo_tools/update_kernel_afdo')
-rwxr-xr-x | afdo_tools/update_kernel_afdo | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/afdo_tools/update_kernel_afdo b/afdo_tools/update_kernel_afdo index 4b41053f..ff0ab224 100755 --- a/afdo_tools/update_kernel_afdo +++ b/afdo_tools/update_kernel_afdo @@ -25,8 +25,10 @@ set -eu set -o pipefail GS_BASE=gs://chromeos-prebuilt/afdo-job/vetted/kernel -KVERS="3.18 4.4 4.14 4.19 5.4" +KVERS="4.4 4.14 4.19 5.4" failed_channels="" +# Add skipped chrome branches in ascending order here. +SKIPPED_BRANCHES="95" script_dir=$(dirname "$0") tc_utils_dir="${script_dir}/.." @@ -57,8 +59,14 @@ branch["canary"]=${canary_ref##*/} # Get current branch numbers (number which goes after R). branch_number["stable"]=$(echo "${branch["stable"]}" | \ sed -n -e "s/^release-R\([0-9][0-9]*\).*$/\1/p") -branch_number["beta"]="$((branch_number[stable] + 1))" +branch_number["beta"]=$(echo "${branch["beta"]}" | \ + sed -n -e "s/^release-R\([0-9][0-9]*\).*$/\1/p") branch_number["canary"]="$((branch_number[beta] + 1))" +for skipped_branch in $SKIPPED_BRANCHES ; do + if [[ ${branch_number["canary"]} == $skipped_branch ]] ; then + ((branch_number[canary]++)) + fi +done # Without arguments the script updates all branches. channels=${1:-"all"} @@ -180,7 +188,6 @@ EOT canary ) commit_contents="afdo_metadata: Publish the new kernel profiles -Update chromeos-kernel-3_18 Update chromeos-kernel-4_4 Update chromeos-kernel-4_14 Update chromeos-kernel-4_19 |