SPEC-2978: clone the release branches 74/23774/1
authorCorentin LABBE <clabbe@baylibre.com>
Mon, 10 Feb 2020 09:53:00 +0000 (10:53 +0100)
committerCorentin LABBE <clabbe@baylibre.com>
Mon, 10 Feb 2020 09:54:09 +0000 (10:54 +0100)
We get to a point where we have board differences between releases also
in releng-scripts.

This patch adapt ci-management to clone the $AGLBRANCH instead of just 'release'.
Bug-AGL: SPEC-2978

Change-Id: I759a857655200f4a8ca833173557219f8a0282ca
Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
jjb/common/include-agl-run-test-prepare.sh

index 3397067..9cbb926 100644 (file)
@@ -10,9 +10,9 @@ cd $REPODIR
 
 # clone repo for templates and related utils, add to $PATH for later use
 if [ ! -e releng-scripts ]; then
-    git clone --branch release https://git.automotivelinux.org/AGL/releng-scripts
+    git clone --branch $AGLBRANCH https://git.automotivelinux.org/AGL/releng-scripts
 else
-    (cd releng-scripts; git remote update; git checkout -f origin/release)
+    (cd releng-scripts; git remote update; git checkout -f origin/$AGLBRANCH)
 fi
 
 if [ -e releng-scripts/utils ]; then