summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorRyota MIBU <r-mibu@cq.jp.nec.com>2016-01-07 19:02:27 +0900
committerRyota MIBU <r-mibu@cq.jp.nec.com>2016-01-07 19:03:42 +0900
commit86e44daad61a306f48f8fdfa7c62c66ffdc7cd2d (patch)
treeba2221437c1dd9f937d7d93d383694db0d2363e2 /jjb
parentf98556c6d6f201d14ec3f3484cbdcd27e22fd56f (diff)
fix clone-opnfv-repos builder for composite-docs
This patch may fix issue that opnfvdocs job to create OPNFV composite docs by limiting import files from other repos to those of docs folders. Change-Id: I7f7edba0c6ca15a80ceedd98ce6c1e36f0ce05cd Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
Diffstat (limited to 'jjb')
-rw-r--r--jjb/opnfvdocs/opnfvdocs.yml20
1 files changed, 13 insertions, 7 deletions
diff --git a/jjb/opnfvdocs/opnfvdocs.yml b/jjb/opnfvdocs/opnfvdocs.yml
index de48aafb7..9238a8d3d 100644
--- a/jjb/opnfvdocs/opnfvdocs.yml
+++ b/jjb/opnfvdocs/opnfvdocs.yml
@@ -159,23 +159,29 @@
set -o nounset
set -o pipefail
+ tmp=$WORKSPACE/composite_tmp
+ [[ -d $tmp ]] && rm -rf $tmp
+ mkdir -p $tmp
+ mkdir -p $WORKSPACE/docs/projects
+
+ pushd $tmp
+
# clone releng repo to get repo list
- cd $WORKSPACE
echo "Cloning releng repo"
git clone $GIT_CLONE_BASE/releng --branch master --depth 1 --quiet
- # clone rest of the repos and checkout the branch
- echo "Cloning repos of participating OPNFV Projects and checking out $GERRIT_BRANCH"
+ echo
+ echo "Cloning repos of participating OPNFV Projects and copying docs"
echo
echo "--------------------------------------------------------"
for repo in $(grep -v '^#' $WORKSPACE/releng/jjb/opnfvdocs/project.cfg | sort); do
- cd $WORKSPACE/docs
- echo " $repo"
+ echo " $repo ($GERRIT_BRANCH)"
git clone $GIT_CLONE_BASE/$repo --branch $GERRIT_BRANCH --depth 1 --quiet
+ cp -r $repo/docs $WORKSPACE/docs/projects/$repo
done
echo "--------------------------------------------------------"
echo
echo "Done"
- # remove releng clone in order not to cause issues for rest of the builders
- /bin/rm -rf $WORKSPACE/releng
+ popd
+ rm -rf $tmp