From fbf863a0b05010033eb62985a3895ca724c6fc4c Mon Sep 17 00:00:00 2001 From: Rich Bennett Date: Tue, 5 Sep 2017 23:25:23 -0400 Subject: Add support for repo.git submodule directories Some ONAP projects use a node in the repository path to represent both hierarchy for lower level repositories and an actual respository. To support this in the doc project submodules directory structure we will append .git to every repository. For example, here are three directories two of which represent repositories appc.git appc/deployment.git. The doc-master-verify-rtd template has been modified to work with repo.git naming when it exist and remain compatible repo naming until .git is added to all repositories Change-Id: I0b97fe71e129afaa400bef3385c4cc8d2d525c49 Issue-ID: DOC-33 Signed-off-by: Rich Bennett --- jjb/doc/doc-templates-rtd.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'jjb') diff --git a/jjb/doc/doc-templates-rtd.yaml b/jjb/doc/doc-templates-rtd.yaml index c6bec58ec..884c3706b 100644 --- a/jjb/doc/doc-templates-rtd.yaml +++ b/jjb/doc/doc-templates-rtd.yaml @@ -58,7 +58,11 @@ builders: - shell: | if [ "$GERRIT_PROJECT" != "doc" ]; then - cd docs/submodules/$GERRIT_PROJECT + if [ -d docs/submodules/$GERRIT_PROJECT.git ]; then + cd docs/submodules/$GERRIT_PROJECT.git + else + cd docs/submodules/$GERRIT_PROJECT + fi git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD else git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD -- cgit 1.2.3-korg