X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fopnfvdocs%2Fdocs-rtd.yaml;h=eee1534d510c86086eb657dc7b9234425486d220;hb=67caab1053c8ca7b0e592ce13ca6d8da8097cfc9;hp=1492a68ffa7b1882caf803edd8b6396c4e39d9b9;hpb=9771991526c6d7fa10058205929895d2c70bb164;p=releng.git diff --git a/jjb/opnfvdocs/docs-rtd.yaml b/jjb/opnfvdocs/docs-rtd.yaml index 1492a68ff..eee1534d5 100644 --- a/jjb/opnfvdocs/docs-rtd.yaml +++ b/jjb/opnfvdocs/docs-rtd.yaml @@ -12,8 +12,6 @@ branch: 'stable/{stream}' - danube: branch: 'stable/{stream}' - - euphrates: - branch: 'stable/{stream}' project: 'opnfvdocs' rtdproject: 'opnfv' @@ -86,7 +84,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