In the monolithic docs build we only care to build if the
project is really a submodule of the monolithic docs build.
If not then skip the build as the project should be providing
their own docs verify job.
Issue: RELENG-845
Change-Id: I9bc146170e150097b3b9a30ec0456173bba9b1ef
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
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