summaryrefslogtreecommitdiffstats
path: root/jjb/opnfvdocs
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2018-09-18 22:55:59 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2018-09-18 22:58:14 +0200
commitc7aa7638729f13d3697da4fe1ffbe30b6a384a43 (patch)
tree64098b3bfa8237c5347d7d639b7643053d446750 /jjb/opnfvdocs
parentd53c8f03e314462ac1d9e475cc28ca750a2d5b56 (diff)
[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 <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'jjb/opnfvdocs')
-rw-r--r--jjb/opnfvdocs/docs-rtd.yaml6
1 files changed, 6 insertions, 0 deletions
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