Fix builder-check-poms job to ignore integration repo 11/30111/2
authorThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 24 Nov 2015 03:09:55 +0000 (22:09 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 24 Nov 2015 03:28:53 +0000 (22:28 -0500)
- 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 <thanh.ha@linuxfoundation.org>
jjb/include-raw-check-poms.sh
jjb/releng-jobs.yaml

index 929e48b332f09885782cff99c49d2c5a456d0e9d..aa01f5889ed14b18273a0eb322aa92177204a10a 100644 (file)
 # 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 <repositories> and <pluginRepositories>
index f479594b63fe38f151fb6e54dd2b3e9b66bb98bc..b2e748a28c827aea9b4e3fac50d99439739f2da4 100644 (file)
 
 - job-template:
     name: builder-check-poms
+    node: dynamic_verify
 
     project-type: freestyle