From fd73ded064d68f3d072407f1b48670ba1a71afb7 Mon Sep 17 00:00:00 2001 From: Luis Gomez Date: Wed, 24 Oct 2018 20:44:12 -0700 Subject: [PATCH] Enable shell debug in MP script Change-Id: I4253cdccbedce0000fcf0979eeb75d69825af559 Signed-off-by: Luis Gomez --- jjb/integration/multipatch-distribution.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jjb/integration/multipatch-distribution.sh b/jjb/integration/multipatch-distribution.sh index 85add5e53..d95962785 100755 --- a/jjb/integration/multipatch-distribution.sh +++ b/jjb/integration/multipatch-distribution.sh @@ -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}" -- 2.36.6