From: Luis Gomez Date: Thu, 25 Oct 2018 03:44:12 +0000 (-0700) Subject: Enable shell debug in MP script X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=fd73ded064d68f3d072407f1b48670ba1a71afb7;p=releng%2Fbuilder.git Enable shell debug in MP script Change-Id: I4253cdccbedce0000fcf0979eeb75d69825af559 Signed-off-by: Luis Gomez --- diff --git a/jjb/integration/multipatch-distribution.sh b/jjb/integration/multipatch-distribution.sh index 85add5e536..d959627857 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}"