X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Finclude-raw-check-poms.sh;h=7410548ef1f740afbac652a60150fe0ec9be5e43;hb=7b9c2bb63def6a80f0f5961579791f01ab192cdd;hp=929e48b332f09885782cff99c49d2c5a456d0e9d;hpb=6bfc40e16c99fe89b0c99d1300210ed39ac21f00;p=releng%2Fbuilder.git diff --git a/jjb/include-raw-check-poms.sh b/jjb/include-raw-check-poms.sh index 929e48b33..7410548ef 100644 --- a/jjb/include-raw-check-poms.sh +++ b/jjb/include-raw-check-poms.sh @@ -16,11 +16,37 @@ # Clear workspace rm -rf * +# Create python script to parse json +cat > ${WORKSPACE}/parse_json.py << EOF +import json +import sys + +obj=json.load(sys.stdin) +for key in obj.keys(): + print(key) + +EOF + # Clone all ODL projects -for p in `ssh -p 29418 git.opendaylight.org gerrit ls-projects` +curl -s --header "Accept: application/json" \ + https://git.opendaylight.org/gerrit/projects/ | \ + tail -n +2 > ${WORKSPACE}/projects.json +for p in `cat ${WORKSPACE}/projects.json | python ${WORKSPACE}/parse_json.py` do - mkdir -p `dirname "$p"` - git clone "https://git.opendaylight.org/gerrit/$p.git" "$p" + # Ignore non-projects and archived projects + if [ "$p" == "All-Users" ] || \ + [ "$p" == "affinity" ] || \ + [ "$p" == "integration" ] || \ + [ "$p" == "net-virt-platform" ] || \ + [ "$p" == "opendove" ] || \ + [ "$p" == "plugin2oc" ] || \ + # Also ignore projects known to deploy to non-ODL repositories + [ "$p" == "yangide" ] + then + continue + fi + mkdir -p `dirname "$p"` + git clone "https://git.opendaylight.org/gerrit/$p.git" "$p" done # Check pom.xml for and