Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #5 from gforcada/patch-1
Browse files Browse the repository at this point in the history
Split the xmllint calling errors from the analysed errors
  • Loading branch information
Timo Stollenwerk committed Apr 17, 2012
2 parents 476397c + 39829fa commit 7ccfc48
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions jenkins-code-analysis.cfg
Expand Up @@ -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
Expand Down

0 comments on commit 7ccfc48

Please sign in to comment.