-
-- builder:
- name: clone-opnfv-repos
- builders:
- - shell: |
- #!/bin/bash
- set -o errexit
- set -o nounset
- set -o pipefail
-
- # clone releng repo to get repo list
- cd $WORKSPACE
- echo "Cloning releng repo"
- git clone $GIT_CLONE_BASE/releng --quiet
-
- # clone rest of the repos and checkout the branch
- echo "Cloning repos of participating OPNFV Projects and checking out $GERRIT_BRANCH"
- echo
- echo "--------------------------------------------------------"
- for repo in $(grep -v '^#' $WORKSPACE/releng/jjb/opnfvdocs/project.cfg | sort); do
- cd $WORKSPACE
- echo " $repo"
- git clone $GIT_CLONE_BASE/$repo --branch $GERRIT_BRANCH --quiet
- done
- echo "--------------------------------------------------------"
- echo
- echo "Done"
-
- # remove releng clone in order not to cause issues for rest of the builders
- /bin/rm -rf $WORKSPACE/releng