Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | |
| 3 | repos=( |
| 4 | "aai/aai-data" "aai/aai-config" "aai/aai-service" "aai/data-router" "aai/logging-service" "aai/model-loader" "aai/resources" "aai/rest-client" "aai/router-core" "aai/search-data-service" "aai/sparky-be" "aai/sparky-fe" "aai/test-config" "aai/traversal" |
| 5 | "appc" "appc/deployment" |
| 6 | "ci-management" |
| 7 | "dcae" "dcae/apod" "dcae/apod/analytics" "dcae/apod/buildtools" "dcae/apod/cdap" "dcae/collectors" "dcae/collectors/ves" "dcae/controller" "dcae/controller/analytics" "dcae/dcae-inventory" "dcae/demo" "dcae/demo/startup" "dcae/demo/startup/aaf" "dcae/demo/startup/controller" "dcae/demo/startup/message-router" "dcae/dmaapbc" "dcae/operation" "dcae/operation/utils" "dcae/orch-dispatcher" "dcae/pgaas" "dcae/utils" "dcae/utils/buildtools" |
| 8 | "demo" |
| 9 | "ecompsdkos" |
| 10 | "mso" "mso/chef-repo" "mso/docker-config" "mso/libs" "mso/mso-config" |
| 11 | "ncomp" "ncomp/cdap" "ncomp/core" "ncomp/docker" "ncomp/maven" "ncomp/openstack" "ncomp/sirius" "ncomp/sirius/manager" "ncomp/utils" |
| 12 | "policy/common" "policy/docker" "policy/drools-applications" "policy/drools-pdp" "policy/engine" |
| 13 | "portal" |
| 14 | "sdc" "sdc/sdc-distribution-client" "sdc/sdc-titan-cassandra" "sdc/sdc_common" |
| 15 | "sdnc/adaptors" "sdnc/core" "sdnc/northbound" "sdnc/oam" "sdnc/plugins" |
| 16 | "testsuite" "testsuite/heatbridge" "testsuite/properties" "testsuite/python-testing-utils" |
| 17 | "ui" "ui/dmaapbc" |
| 18 | "vid" "vid/asdcclient") |
| 19 | |
| 20 | function git_clone_or_pull { |
| 21 | local repo=$1 |
| 22 | local folder="../opt/$1" |
| 23 | local mvn_build=$2 |
| 24 | if [ ! -d $folder ]; then |
| 25 | git clone https://git.onap.org/$repo $folder |
| 26 | fi |
| 27 | pushd $folder > /dev/null |
| 28 | git pull -q |
| 29 | if [ -f .gitreview ]; then |
| 30 | git review -s |
| 31 | fi |
| 32 | #if [ -f pom.xml ] && [ -n ${mvn_build+x} ]; then |
| 33 | #mvn clean -q install -U -DskipTests=true -Dmaven.test.skip=true -Dadditionalparam=-Xdoclint:none |
| 34 | #fi |
| 35 | popd > /dev/null |
| 36 | } |
| 37 | |
| 38 | for repo in ${repos[@]}; do |
| 39 | echo "Working on $repo repository..." |
| 40 | git_clone_or_pull $repo |
| 41 | done |