Permalink
Browse files

Merge pull request #5 from gforcada/patch-1

Split the xmllint calling errors from the analysed errors
  • Loading branch information...
2 parents 476397c + 39829fa commit 7ccfc48472cc884de1167fb5f194faca8ab8681e Timo Stollenwerk committed Apr 17, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 jenkins-code-analysis.cfg
View
@@ -251,13 +251,13 @@ input = inline:
for pkg in $PACKAGES
do
echo "Analyse $pkg"
- find -L $pkg -regex ".*\.[cz]?pt" | xargs xmllint --noout > ${buildout:jenkins-directory}/xmllint.log 2>&1
+ find -L $pkg -regex ".*\.[cz]?pt" | xargs xmllint --noout 2>> ${buildout:jenkins-directory}/xmllint.log >> ${buildout:jenkins-directory}/xmllint-errors.log
done
- if [ -s ${buildout:jenkins-directory}/xmllint.log ]; then
- echo "Errors were found:"
- cat ${buildout:jenkins-directory}/xmllint.log
- echo "Errors were written to xmllint.log"
- exit 1;
+ if [ -s ${buildout:jenkins-directory}/xmllint-errors.log ]; then
+ echo "Errors were found:"
+ cat ${buildout:jenkins-directory}/xmllint-errors.log
+ echo "Errors were written to xmllint-errors.log"
+ exit 1;
else
echo "No errors found"
fi

0 comments on commit 7ccfc48

Please sign in to comment.