X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fintegration%2Fupdate-csit-tests.sh;h=8d2c46a6d399bb7279a179117c18ab349f965eb9;hb=e3df9661c6a556bfaab9e3bda8552c326326d844;hp=a56fd02a5ea8fcbd1958554154b211c91b914526;hpb=bdc46412fc7bbc64740aec2f7eaad032d6d8f6d4;p=releng%2Fbuilder.git diff --git a/jjb/integration/update-csit-tests.sh b/jjb/integration/update-csit-tests.sh index a56fd02a5..8d2c46a6d 100644 --- a/jjb/integration/update-csit-tests.sh +++ b/jjb/integration/update-csit-tests.sh @@ -13,16 +13,18 @@ echo "---> update-csit-tests.sh" jobs_file=$(mktemp) search_string="csit" -wget --quiet -O "$jobs_file" https://jenkins.opendaylight.org/$SILO/api/xml +wget --quiet -O "$jobs_file" "https://jenkins.opendaylight.org/$SILO/api/xml" # shellcheck disable=SC2207 jobs=($(xmlstarlet sel -t -m '//hudson/job' \ - -n -v 'name' "$jobs_file" | grep $search_string | grep $STREAM)) + -n -v 'name' "$jobs_file" | grep $search_string | grep "$STREAM")) # output as comma-separated list job_list="${WORKSPACE}/jjb/integration/csit-jobs-${STREAM}.lst" rm "$job_list" for job in "${jobs[@]}"; do - if [[ ! $job =~ update-csit-tests|${CSIT_BLACKLIST// /\|} ]]; then + echo "Checking if $job is blocklisted." + if [[ ! $job =~ update-csit-tests|${CSIT_BLOCKLIST// /\|} ]]; then echo "${job}," >> "$job_list" + echo " Added $job to job list." fi done