summaryrefslogtreecommitdiffstats
path: root/jjb/opnfvdocs
diff options
context:
space:
mode:
authorTrevor Bramwell <tbramwell@linuxfoundation.org>2018-10-19 19:13:24 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-10-19 19:13:24 +0000
commit9a1c41df27fe5b96330001071c3c05e17272d03b (patch)
tree33e478a6fb9863f16589c2bf609b2f02d8602fce /jjb/opnfvdocs
parent2e72f359deb0370c518729293c4d0e61b45aa7cc (diff)
parentbccc9e495f945bd4d834a1f3f7fbc527358e6900 (diff)
Merge "[docs] local docs building for missing submodules"
Diffstat (limited to 'jjb/opnfvdocs')
-rw-r--r--jjb/opnfvdocs/docs-rtd.yaml7
1 files changed, 6 insertions, 1 deletions
diff --git a/jjb/opnfvdocs/docs-rtd.yaml b/jjb/opnfvdocs/docs-rtd.yaml
index 1492a68ff..a239b4e4b 100644
--- a/jjb/opnfvdocs/docs-rtd.yaml
+++ b/jjb/opnfvdocs/docs-rtd.yaml
@@ -86,7 +86,12 @@
builders:
- shell: |
if [ "$GERRIT_PROJECT" != "opnfvdocs" ]; then
- cd docs/submodules/$GERRIT_PROJECT
+ # Temporary hacky solution to handle local builds for projects
+ # that already moved away from submodules
+ if ! cd docs/submodules/$GERRIT_PROJECT 2 > /dev/null; then
+ rm -rf .* * 2 > /dev/null
+ git clone ${{GIT_BASE/opnfvdocs/$GERRIT_PROJECT}} .
+ fi
git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
cd -
else