From b74ac9b3ce17ba5057684588ebbf8d95465b7482 Mon Sep 17 00:00:00 2001
From: Trevor Bramwell <tbramwell@linuxfoundation.org>
Date: Wed, 29 Nov 2017 11:06:38 -0800
Subject: Fix Anteater Weekly Reporting Job

- Does not output the full scan to the console log
- Updates the email-ext defaults to include any *.log file in the root
  of the workspace. This should include securityaudit.log
- Adds 'GERRIT_REFSPEC' to the list of job parameters as required by
  'git-scm-gerrit'
- Fixes email-ptl macros so projects with extra repos have the proper
  recipients.

Change-Id: Ibf22bf0683fc1f88de07ef3bb4717769c6ea0174
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
---
 jjb/ci_gate_security/anteater-security-audit-weekly.sh | 1 -
 jjb/ci_gate_security/opnfv-ci-gate-security.yml        | 4 ++++
 2 files changed, 4 insertions(+), 1 deletion(-)

(limited to 'jjb/ci_gate_security')

diff --git a/jjb/ci_gate_security/anteater-security-audit-weekly.sh b/jjb/ci_gate_security/anteater-security-audit-weekly.sh
index 25850af28..6caa13117 100644
--- a/jjb/ci_gate_security/anteater-security-audit-weekly.sh
+++ b/jjb/ci_gate_security/anteater-security-audit-weekly.sh
@@ -47,5 +47,4 @@ exit_code=$?
 echo "--------------------------------------------------------"
 echo "Docker container exited with code: $exit_code"
 echo "--------------------------------------------------------"
-cat securityaudit.log
 exit 0
diff --git a/jjb/ci_gate_security/opnfv-ci-gate-security.yml b/jjb/ci_gate_security/opnfv-ci-gate-security.yml
index 5a2534ae8..75d1698ad 100644
--- a/jjb/ci_gate_security/opnfv-ci-gate-security.yml
+++ b/jjb/ci_gate_security/opnfv-ci-gate-security.yml
@@ -103,6 +103,10 @@
       - project-parameter:
           project: '{repo}'
           branch: '{branch}'
+      - string:
+          name: GERRIT_REFSPEC
+          default: 'refs/heads/{stream}'
+          description: "Default Gerrit ref git HEAD should point to"
 
     scm:
       - git-scm-gerrit
-- 
cgit