Only Submit Security Scan Results that Exist 43/44743/1
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Tue, 10 Oct 2017 23:17:14 +0000 (16:17 -0700)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Tue, 10 Oct 2017 23:17:14 +0000 (16:17 -0700)
commitf6255c45367f39533b589a91ca351ad0bcfd0ac9
treebc8a988232bad17d11fc4259c5ff4878b09c000e
parent4639c8a63b0f89e552dd574bc27973be8fb8b54d
Only Submit Security Scan Results that Exist

When anteater runs it generates a shortlog containing any errors that
were encountered during it's run.

If no errors exist it will still create an empty file 'shortlog'. A
review containing no content will be attempt to be posted and fail with:

  fatal: Argument "{COMMIT | CHANGE,PATCHSET}" is required

Instead of attempting to post nothing, the job should just skip
submitting a review.

Change-Id: I3feacb15e47dea204783053b3e67a9aa81ba164d
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
jjb/ci_gate_security/anteater-report-to-gerrit.sh