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}'
31 description: 'Slave label on Jenkins'
33 project: $GERRIT_PROJECT
41 server-name: 'gerrit.opnfv.org'
43 - patchset-created-event:
44 exclude-drafts: 'false'
45 exclude-trivial-rebase: 'false'
46 exclude-no-code-change: 'false'
47 - draft-published-event
48 - comment-added-contains-event:
49 comment-contains-value: 'recheck'
50 - comment-added-contains-event:
51 comment-contains-value: 'reverify'
53 - project-compare-type: 'REG_EXP'
54 project-pattern: 'sandbox'
56 - branch-compare-type: 'ANT'
57 branch-pattern: '**/{branch}'
68 - anteater-security-audit
69 # - report-security-audit-result-to-gerrit
70 ########################
72 ########################
74 name: anteater-security-audit
77 !include-raw: ./anteater-security-audit.sh
80 name: report-security-audit-result-to-gerrit
87 export PATH=$PATH:/usr/local/bin/
89 # If no violations were found, no lint log will exist.
90 if [[ -e securityaudit.log ]] ; then
91 echo -e "\nposting security audit report to gerrit...\n"
96 ssh -p 29418 gerrit.opnfv.org \
97 "gerrit review -p $GERRIT_PROJECT \
98 -m \"$(cat securityaudit.log)\" \
99 $GERRIT_PATCHSET_REVISION \