Code Review
/
releng
/
builder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Do not print stack list
[releng/builder.git]
/
jjb
/
include-raw-check-poms.sh
diff --git
a/jjb/include-raw-check-poms.sh
b/jjb/include-raw-check-poms.sh
index aa01f5889ed14b18273a0eb322aa92177204a10a..ed72f650c08b85551231a5a936008aed1940e89f 100644
(file)
--- a/
jjb/include-raw-check-poms.sh
+++ b/
jjb/include-raw-check-poms.sh
@@
-14,10
+14,10
@@
##############################################################################
# Clear workspace
##############################################################################
# Clear workspace
-rm -rf *
+rm -rf
-- "${WORKSPACE:?}"/
*
# Create python script to parse json
# Create python script to parse json
-cat >
${WORKSPACE}/parse_json.py
<< EOF
+cat >
"${WORKSPACE}/parse_json.py"
<< EOF
import json
import sys
import json
import sys
@@
-30,23
+30,29
@@
EOF
# Clone all ODL projects
curl -s --header "Accept: application/json" \
https://git.opendaylight.org/gerrit/projects/ | \
# Clone all ODL 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`
+ tail -n +2 >
"${WORKSPACE}/projects.json"
+for p in
$(python "${WORKSPACE}/parse_json.py" < "${WORKSPACE}/projects.json")
do
do
+ # Ignore non-projects and archived projects
if [ "$p" == "All-Users" ] || \
if [ "$p" == "All-Users" ] || \
+ [ "$p" == "affinity" ] || \
[ "$p" == "integration" ] || \
[ "$p" == "integration" ] || \
- [ "$p" == "net-virt-platform" ]
+ [ "$p" == "net-virt-platform" ] || \
+ [ "$p" == "opendove" ] || \
+ [ "$p" == "plugin2oc" ] || \
+ # Also ignore projects known to deploy to non-ODL repositories
+ [ "$p" == "yangide" ]
then
continue
fi
then
continue
fi
- mkdir -p
`dirname "$p"`
+ mkdir -p
"$(dirname "$p")"
git clone "https://git.opendaylight.org/gerrit/$p.git" "$p"
done
# Check pom.xml for <repositories> and <pluginRepositories>
FILE=repos.txt
git clone "https://git.opendaylight.org/gerrit/$p.git" "$p"
done
# Check pom.xml for <repositories> and <pluginRepositories>
FILE=repos.txt
-find . -name pom.xml
| xargs grep -i '<repositories>\|<pluginRepositories>' > $FILE
+find . -name pom.xml
-print0 | xargs -0 grep -i '<repositories>\|<pluginRepositories>' > "$FILE"
[[ $(tr -d "\r\n" < $FILE|wc -c) -eq 0 ]] && rm $FILE
if [ -a $FILE ]
[[ $(tr -d "\r\n" < $FILE|wc -c) -eq 0 ]] && rm $FILE
if [ -a $FILE ]