diff options
author | 2017-09-05 23:25:23 -0400 | |
---|---|---|
committer | 2017-09-05 23:25:23 -0400 | |
commit | fbf863a0b05010033eb62985a3895ca724c6fc4c (patch) | |
tree | db65fa56bfd9f1074b4a1120fc4a42e6a17a3214 /jjb | |
parent | 86588fee38ae414e8611f53babe4309a730fb922 (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')
-rw-r--r-- | jjb/doc/doc-templates-rtd.yaml | 6 |
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 |