Enable shell debug in MP script 69/77269/1
authorLuis Gomez <ecelgp@gmail.com>
Thu, 25 Oct 2018 03:44:12 +0000 (20:44 -0700)
committerLuis Gomez <ecelgp@gmail.com>
Thu, 25 Oct 2018 03:44:12 +0000 (20:44 -0700)
Change-Id: I4253cdccbedce0000fcf0979eeb75d69825af559
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
jjb/integration/multipatch-distribution.sh

index 85add5e5365d7473a7fcaa0389a31aa20e0c3d0d..d959627857c89b36594a7c287585c6d876fc619b 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-set -e
+set -ex
 
 # create a fresh empty place to build this custom distribution
 BUILD_DIR=${WORKSPACE}/patch_tester
@@ -43,6 +43,7 @@ if [[ "${PATCHES_TO_BUILD}" == *topic* ]]; then
     echo "Create topic ${TOPIC} patch list"
     PATCHES_TO_BUILD=""
     read -ra PROJECT_LIST <<< "${BUILD_ORDER} integration/distribution"
+    echo "${PROJECT_LIST[@]}"
     for PROJECT in "${PROJECT_LIST[@]}"; do
         # get all patches number for a topic for a given project
         IFS=$'\n' read -rd '' -a GERRIT_PATCH_LIST <<< "$(ssh -p 29418 jenkins-$SILO@git.opendaylight.org gerrit query status:open topic:${TOPIC} project:${PROJECT} \
@@ -81,7 +82,7 @@ if [[ "${PATCHES_TO_BUILD}" == *topic* ]]; then
         fi
     done
 fi
-
+set +e
 echo "Patches to build: ${PATCHES_TO_BUILD}"
 IFS=',' read -ra PATCHES <<< "${PATCHES_TO_BUILD}"