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}'
29 project: $GERRIT_PROJECT
37 server-name: 'gerrit.opnfv.org'
39 - patchset-created-event:
40 exclude-drafts: 'false'
41 exclude-trivial-rebase: 'false'
42 exclude-no-code-change: 'false'
43 - draft-published-event
44 - comment-added-contains-event:
45 comment-contains-value: 'recheck'
46 - comment-added-contains-event:
47 comment-contains-value: 'reverify'
49 - project-compare-type: 'REG_EXP'
50 project-pattern: 'sandbox'
52 - branch-compare-type: 'ANT'
53 branch-pattern: '**/{branch}'
64 - security-audit-python-code
65 - report-security-audit-result-to-gerrit
66 ########################
68 ########################
70 name: security-audit-python-code
77 export PATH=$PATH:/usr/local/bin/
79 # this is where the security/license audit script will be executed
82 name: report-security-audit-result-to-gerrit
89 export PATH=$PATH:/usr/local/bin/
91 # If no violations were found, no lint log will exist.
92 if [[ -e securityaudit.log ]] ; then
93 echo -e "\nposting security audit report to gerrit...\n"
98 ssh -p 29418 gerrit.opnfv.org \
99 "gerrit review -p $GERRIT_PROJECT \
100 -m \"$(cat securityaudit.log)\" \
101 $GERRIT_PATCHSET_REVISION \