Code Review
/
releng.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix Security Scan Shortlog Format
[releng.git]
/
jjb
/
ci_gate_security
/
anteater-report-to-gerrit.sh
diff --git
a/jjb/ci_gate_security/anteater-report-to-gerrit.sh
b/jjb/ci_gate_security/anteater-report-to-gerrit.sh
index
a749d1d
..
de1fdd7
100644
(file)
--- a/
jjb/ci_gate_security/anteater-report-to-gerrit.sh
+++ b/
jjb/ci_gate_security/anteater-report-to-gerrit.sh
@@
-13,7
+13,7
@@
if [[ -e securityaudit.log ]] ; then
EXITSTATUS=1
fi
EXITSTATUS=1
fi
-
awk -F"ERROR - " '{print $2}' securityaudit.log | sed -e "s/\"/\\\\\"/g;s/\'/\\\\/g"
> shortlog
+
grep 'ERROR' securityaudit.log | awk -F"ERROR - " '{ print $2 }' | tr -d "\'\""
> shortlog
ssh -p 29418 gerrit.opnfv.org \
"gerrit review -p $GERRIT_PROJECT \
ssh -p 29418 gerrit.opnfv.org \
"gerrit review -p $GERRIT_PROJECT \