SPEC-2903: define GERRIT_HOST 57/22757/1
authorCorentin LABBE <clabbe@baylibre.com>
Thu, 24 Oct 2019 12:49:46 +0000 (14:49 +0200)
committerCorentin LABBE <clabbe@baylibre.com>
Thu, 24 Oct 2019 12:50:38 +0000 (14:50 +0200)
If GERRIT_HOST is empty fallback to gerrit.automotivelinux.org

Bug-AGL: SPEC-2903
Change-Id: Iced5435293c9fc0c3d260e3e27b2f15e03d9ea89
Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
jjb/common/include-agl-lava-jobs-submit.sh

index 9b876bf..ebc5c1a 100644 (file)
@@ -71,6 +71,9 @@ echo "#### End: Output from LAVA job $job_id ####"
 echo "####"
 
 handle_skiplist() {
+       if [ -z "${GERRIT_HOST}" ]; then
+                   export GERRIT_HOST="gerrit.automotivelinux.org"
+       fi
        SKIPLIST=skiplist
        # detect job type (apps vs non-apps) and get skiplist
        if [ ! -z "$(echo $JOB_NAME | grep 'ci-platform')" ];then