X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2Fbuild.sh;h=af065b1128dea4d1408c48905ed2a7fed1a0b874;hb=7bc81629e67d747cc362056669070f856494fe01;hp=fd079c914ed7eb9ab35fc811040bedca3bdb8ced;hpb=e4162e980cccf78e60acbbf1ec3f590637f5a3a8;p=apex.git diff --git a/ci/build.sh b/ci/build.sh index fd079c91..af065b11 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -112,10 +112,10 @@ fi # Conditionally execute RPM build checks if the specs change and target is not rpm or iso if [[ "$MAKE_TARGETS" == "images" ]]; then - commit_file_list=$(git show --pretty="format:" --name-only) + commit_file_list=$(git show --pretty="format:" --name-status) if git show -s | grep "force-build-rpms"; then MAKE_TARGETS+=" rpms" - elif [[ $commit_file_list == *build/Makefile* ]]; then + elif [[ $commit_file_list == *"A$(printf '\t')"* || $commit_file_list == *build/Makefile* ]]; then # Makefile forces all rpms to be checked MAKE_TARGETS+=" rpms-check" else