1 ########################
2 # Job configuration for opnfv-lint
3 ########################
11 - 'opnfv-security-audit-verify-{stream}'
19 ########################
21 ########################
23 name: 'opnfv-security-audit-verify-{stream}'
25 disabled: '{obj:disabled}'
30 default: 'ericsson-build3'
31 description: 'Slave label on Jenkins'
33 project: $GERRIT_PROJECT
37 default: https://gerrit.opnfv.org/gerrit/$PROJECT
38 description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
45 server-name: 'gerrit.opnfv.org'
47 - patchset-created-event:
48 exclude-drafts: 'false'
49 exclude-trivial-rebase: 'false'
50 exclude-no-code-change: 'false'
51 - draft-published-event
52 - comment-added-contains-event:
53 comment-contains-value: 'recheck'
54 - comment-added-contains-event:
55 comment-contains-value: 'reverify'
57 - project-compare-type: 'REG_EXP'
58 project-pattern: 'sandbox'
60 - branch-compare-type: 'ANT'
61 branch-pattern: '**/{branch}'
72 - anteater-security-audit
73 # - report-security-audit-result-to-gerrit
74 ########################
76 ########################
78 name: anteater-security-audit
81 !include-raw: ./anteater-security-audit.sh
84 name: report-security-audit-result-to-gerrit
91 export PATH=$PATH:/usr/local/bin/
93 # If no violations were found, no lint log will exist.
94 if [[ -e securityaudit.log ]] ; then
95 echo -e "\nposting security audit report to gerrit...\n"
100 ssh -p 29418 gerrit.opnfv.org \
101 "gerrit review -p $GERRIT_PROJECT \
102 -m \"$(cat securityaudit.log)\" \
103 $GERRIT_PATCHSET_REVISION \