summaryrefslogtreecommitdiffstats
path: root/jjb/opnfvdocs/opnfvdocs.yml
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/opnfvdocs/opnfvdocs.yml')
-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