From c7aa7638729f13d3697da4fe1ffbe30b6a384a43 Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Tue, 18 Sep 2018 22:55:59 +0200 Subject: [PATCH] [docs] Limit git submodule recurse to depth 1 Some projects (e.g. Fuel, Armband) embed their own git submodules, which are picked up by Sphinx during RTD verify job, leading to a lot of issues (e.g. duplicate labels since Armband includes Fuel as a git submodule of its own). Change-Id: I771f7c95334fc25c82cc8b14ee2064b043d9e321 Signed-off-by: Alexandru Avadanii --- jjb/opnfvdocs/docs-rtd.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jjb/opnfvdocs/docs-rtd.yaml b/jjb/opnfvdocs/docs-rtd.yaml index ece856903..cb55fd2a9 100644 --- a/jjb/opnfvdocs/docs-rtd.yaml +++ b/jjb/opnfvdocs/docs-rtd.yaml @@ -84,9 +84,15 @@ if [ "$GERRIT_PROJECT" != "opnfvdocs" ]; then cd docs/submodules/$GERRIT_PROJECT git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD + cd - else git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD fi + if [ -d docs/subdmodules ]; then + for project in docs/submodules/*; do + cd $project && git submodule deinit -f . && cd - + done + fi - shell: | sudo pip install virtualenv virtualenv $WORKSPACE/venv -- 2.16.6