X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Frtd-verify.sh;h=7f403ebb9e425c58f35f16889ca751027978ad34;hb=6eefde1f463638b5021c2ec96eb67a017d379f1f;hp=61c1974e135fd9adf7d8ead4921e9a519e19ee2c;hpb=338c1a22f1e7eccd2224b1d9bc72cdd7ae55ebff;p=releng%2Fglobal-jjb.git diff --git a/shell/rtd-verify.sh b/shell/rtd-verify.sh index 61c1974e..7f403ebb 100644 --- a/shell/rtd-verify.sh +++ b/shell/rtd-verify.sh @@ -16,6 +16,14 @@ set -xe -o pipefail echo "---> Fetching project" if [ "$GERRIT_PROJECT" != "$PROJECT" ]; then + # Only test projects that are a submodule of docs + if ! git submodule | grep "$GERRIT_PROJECT"; then + echo "WARN: Project is not a submodule of docs. This likely means " \ + "the project is not participating in the monolithic docs build " \ + "and should have their own verify job. Quitting job run..." + exit 0 + fi + cd "docs/submodules/$GERRIT_PROJECT" fi