fix: use csit lts branch in vpp-csit lts jobs 08/30608/4
authorJan Gelety <jgelety@cisco.com>
Mon, 21 Dec 2020 23:22:48 +0000 (00:22 +0100)
committerJan Gelety <jgelety@cisco.com>
Thu, 7 Jan 2021 08:38:02 +0000 (08:38 +0000)
Change-Id: Iebd62fd6b0c798f7b4dd1f3b093c156e533b3900
Signed-off-by: Jan Gelety <jgelety@cisco.com>
resources/libraries/bash/function/branch.sh

index 96609c8..ba9cc39 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2020 Cisco and/or its affiliates.
+# Copyright (c) 2021 Cisco and/or its affiliates.
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at:
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at:
@@ -57,6 +57,10 @@ function checkout_csit_for_vpp () {
     set -exuo pipefail
 
     case "${1}" in
     set -exuo pipefail
 
     case "${1}" in
+        "stable/2009")
+            # LTS branch
+            branch_id="origin/${1/stable\//oper-rls}_lts"
+            ;;
         "stable/"*)
             branch_id="origin/${1/stable\//oper-rls}"
             ;;
         "stable/"*)
             branch_id="origin/${1/stable\//oper-rls}"
             ;;