summaryrefslogtreecommitdiffstats
path: root/jjb/doc
diff options
context:
space:
mode:
authorRich Bennett <rb2745@att.com>2017-09-05 23:25:23 -0400
committerRich Bennett <rb2745@att.com>2017-09-05 23:25:23 -0400
commitfbf863a0b05010033eb62985a3895ca724c6fc4c (patch)
treedb65fa56bfd9f1074b4a1120fc4a42e6a17a3214 /jjb/doc
parent86588fee38ae414e8611f53babe4309a730fb922 (diff)
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 <rb2745@att.com>
Diffstat (limited to 'jjb/doc')
-rw-r--r--jjb/doc/doc-templates-rtd.yaml6
1 files changed, 5 insertions, 1 deletions
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