4 export PATH=$PATH:/usr/local/bin/
7 # If no violations were found, no lint log will exist.
8 if [[ -e securityaudit.log ]] ; then
9 echo -e "\nposting security audit report to gerrit...\n"
11 if grep ERROR securityaudit.log; then
15 cat securityaudit.log | awk -F"ERROR -\ " '{print $2}' > shortlog
17 ssh -p 29418 gerrit.opnfv.org \
18 "gerrit review -p $GERRIT_PROJECT \
19 -m \"$(cat shortlog)\" \
20 $GERRIT_PATCHSET_REVISION \