From: Trevor Bramwell Date: Fri, 19 Oct 2018 19:13:24 +0000 (+0000) Subject: Merge "[docs] local docs building for missing submodules" X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=9a1c41df27fe5b96330001071c3c05e17272d03b;p=releng.git Merge "[docs] local docs building for missing submodules" --- 9a1c41df27fe5b96330001071c3c05e17272d03b diff --cc jjb/opnfvdocs/docs-rtd.yaml index 1492a68ff,c7988e63c..a239b4e4b --- a/jjb/opnfvdocs/docs-rtd.yaml +++ b/jjb/opnfvdocs/docs-rtd.yaml @@@ -86,9 -82,13 +86,14 @@@ 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 git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD fi