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