Fix Anteater Weekly Reporting Job 33/48033/3
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Wed, 29 Nov 2017 19:06:38 +0000 (11:06 -0800)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Wed, 29 Nov 2017 20:16:16 +0000 (12:16 -0800)
- 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
jjb/ci_gate_security/opnfv-ci-gate-security.yml
jjb/global/releng-macros.yml

index 25850af..6caa131 100644 (file)
@@ -47,5 +47,4 @@ exit_code=$?
 echo "--------------------------------------------------------"
 echo "Docker container exited with code: $exit_code"
 echo "--------------------------------------------------------"
-cat securityaudit.log
 exit 0
index 5a2534a..75d1698 100644 (file)
       - 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
index 2821638..d554f41 100644 (file)
     name: 'email_ptl_defaults'
     content-type: text
     attach-build-log: true
+    attachments: '*.log'
     compress-log: true
     always: true
     subject: '{subject}'
 
-- publisher:
+- publisher: &email_apex_ptl_defaults
     name: 'email-apex-ptl'
-    publishers: &email_apex_ptl_defaults
+    publishers:
       - email-ext:
           <<: *email_ptl_defaults
           recipients: >
             trozet@redhat.com
 - publisher:
     name: 'email-apex-os-net-config-ptl'
-    publishers:
-      <<: *email_apex_ptl_defaults
+    <<: *email_apex_ptl_defaults
 - publisher:
     name: 'email-apex-puppet-tripleo-ptl'
-    publishers:
-      <<: *email_apex_ptl_defaults
+    <<: *email_apex_ptl_defaults
 - publisher:
     name: 'email-apex-tripleo-heat-templates-ptl'
-    publishers:
-      <<: *email_apex_ptl_defaults
+    <<: *email_apex_ptl_defaults
 
 - publisher:
     name: 'email-armband-ptl'
           recipients: >
             stephen.wong1@huawei.com
 
-- publisher:
+- publisher: &email_compass4nfv_ptl_defaults
     name: 'email-compass4nfv-ptl'
-    publishers: &email_compass4nfv_ptl_defaults
+    publishers:
       - email-ext:
           <<: *email_ptl_defaults
           recipients: >
             chigang@huawei.com
 - publisher:
     name: 'email-compass-containers-ptl'
-    publishers:
-      <<: *email_compass4nfv_ptl_defaults
+    <<: *email_compass4nfv_ptl_defaults
 
 - publisher:
     name: 'email-conductor-ptl'
           recipients: >
             shang.xiaodong@zte.com.cn
 
-- publisher:
+- publisher: &email_pharos_ptl_defaults
     name: 'email-pharos-ptl'
-    publishers: &email_pharos_ptl_defaults
+    publishers:
       - email-ext:
           <<: *email_ptl_defaults
           recipients: >
             jack.morgan@intel.com
 - publisher:
     name: 'email-pharos-tools-ptl'
-    publishers:
-      <<: *email_pharos_ptl_defaults
+    <<: *email_pharos_ptl_defaults
 
 - publisher:
     name: 'email-promise-ptl'
           recipients: >
             wu.zhihui1@zte.com.cn
 
-- publisher:
+- publisher: &email_releng_ptl_defaults
     name: 'email-releng-ptl'
-    publishers: &email_releng_ptl_defaults
+    publishers:
       - email-ext:
           <<: *email_ptl_defaults
           recipients: >
             fatih.degirmenci@ericsson.com
 - publisher:
     name: 'email-releng-anteater-ptl'
-    publishers:
-      <<: *email_releng_ptl_defaults
+    <<: *email_releng_ptl_defaults
 - publisher:
     name: 'email-releng-testresults-ptl'
-    publishers:
-      <<: *email_releng_ptl_defaults
+    <<: *email_releng_ptl_defaults
 - publisher:
     name: 'email-releng-utils-ptl'
-    publishers:
-      <<: *email_releng_ptl_defaults
+    <<: *email_releng_ptl_defaults
 - publisher:
     name: 'email-releng-xci-ptl'
-    publishers:
-      <<: *email_releng_ptl_defaults
+    <<: *email_releng_ptl_defaults
 
 - publisher:
     name: 'email-samplevnf-ptl'