From cb893289374f86343cba6837156de457b034beb0 Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Mon, 23 Nov 2015 22:09:55 -0500 Subject: [PATCH] Fix builder-check-poms job to ignore integration repo - Also update scripts to run without requiring ssh - Force job to run on dynamic_verify builder - Also ignore All-Users repo and archived repos Change-Id: I116c237140e286272c3adb8b6bd4f41668669ae4 Signed-off-by: Thanh Ha --- jjb/include-raw-check-poms.sh | 26 +++++++++++++++++++++++--- jjb/releng-jobs.yaml | 1 + 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/jjb/include-raw-check-poms.sh b/jjb/include-raw-check-poms.sh index 929e48b332..aa01f5889e 100644 --- a/jjb/include-raw-check-poms.sh +++ b/jjb/include-raw-check-poms.sh @@ -16,11 +16,31 @@ # 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" + if [ "$p" == "All-Users" ] || \ + [ "$p" == "integration" ] || \ + [ "$p" == "net-virt-platform" ] + then + continue + fi + mkdir -p `dirname "$p"` + git clone "https://git.opendaylight.org/gerrit/$p.git" "$p" done # Check pom.xml for and diff --git a/jjb/releng-jobs.yaml b/jjb/releng-jobs.yaml index f479594b63..b2e748a28c 100644 --- a/jjb/releng-jobs.yaml +++ b/jjb/releng-jobs.yaml @@ -234,6 +234,7 @@ - job-template: name: builder-check-poms + node: dynamic_verify project-type: freestyle -- 2.36.6