X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fintegration%2Fmultipatch-distribution.sh;h=82220dff32a0f00ae3a6737828296febf4a7a15a;hb=0209f258540405a719e0bf9d89bfc9e7ebf9d647;hp=eb61446ec9a3e4829ceff6dd1a7a36c7ecf6e250;hpb=f4b9f7257925bb9a3da2a9fedda0dfe4fbc5b2db;p=releng%2Fbuilder.git diff --git a/jjb/integration/multipatch-distribution.sh b/jjb/integration/multipatch-distribution.sh index eb61446ec..82220dff3 100755 --- a/jjb/integration/multipatch-distribution.sh +++ b/jjb/integration/multipatch-distribution.sh @@ -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}" + echo "List of projects to check patch in topic: ${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} \ @@ -71,12 +72,16 @@ if [[ "${PATCHES_TO_BUILD}" == *topic* ]]; then read -rd '' -a SORT_REF_LIST <<< "${SORT_REF[*]}" || true # add refspec to patches to build list for PATCH in "${SORT_REF_LIST[@]}"; do - PATCHES_TO_BUILD="${PATCHES_TO_BUILD}:${PATCH/*-/}" + # if project is odlparent or yangtools, do not cherry-pick + if [[ "${PROJECT}" == "odlparent" || "${PROJECT}" == "yangtools" ]]; then + PATCHES_TO_BUILD="${PATCHES_TO_BUILD}=${PATCH/*-/}" + else + PATCHES_TO_BUILD="${PATCHES_TO_BUILD}:${PATCH/*-/}" + fi done fi done fi - echo "Patches to build: ${PATCHES_TO_BUILD}" IFS=',' read -ra PATCHES <<< "${PATCHES_TO_BUILD}"