Merge "Clean up CI Node Listing for pushing test logs"
[releng.git] / jjb / ci_gate_security / opnfv-ci-gate-security.yaml
1 ---
2 # SPDX-license-identifier: Apache-2.0
3 ########################
4 # Job configuration for opnfv-anteater (security audit)
5 ########################
6 - project:
7
8     name: anteaterfw
9
10     project: anteaterfw
11
12     repo:
13       - apex
14       - apex-os-net-config
15       - apex-puppet-tripleo
16       - apex-tripleo-heat-templates
17       - armband
18       - auto
19       - availability
20       - bamboo
21       - barometer
22       - bottlenecks
23       - calipso
24       - clover
25       - compass-containers
26       - compass4nfv
27       - conductor
28       - container4nfv
29       - copper
30       - cperf
31       - daisy
32       - doctor
33       - domino
34       - dovetail
35       - dpacc
36       - enfv
37       - fds
38       - fuel
39       - functest
40       - ipv6
41       - joid
42       - kvmfornfv
43       - models
44       - moon
45       - netready
46       - nfvbench
47       - onosfw
48       - opera
49       - opnfvdocs
50       - orchestra
51       - ovn4nfv
52       - ovno
53       - ovsnfv
54       - parser
55       - pharos
56       - pharos-tools
57       - promise
58       - qtip
59       - releng
60       - releng-anteater
61       - releng-testresults
62       - releng-utils
63       - releng-xci
64       - samplevnf
65       - sdnvpn
66       - securityscanning
67       - sfc
68       - snaps
69       - stor4nfv
70       - storperf
71       - ves
72       - vswitchperf
73       - yardstick
74
75     jobs:
76       - 'opnfv-security-audit-verify-{stream}'
77       - 'opnfv-security-audit-{repo}-weekly-{stream}'
78
79     stream:
80       - master:
81           branch: '{stream}'
82           gs-pathname: ''
83           disabled: false
84
85 ########################
86 # job templates
87 ########################
88 - job-template:
89     name: 'opnfv-security-audit-{repo}-weekly-{stream}'
90
91     disabled: '{obj:disabled}'
92
93     parameters:
94       - ericsson-build3-defaults
95       - string:
96           name: ANTEATER_SCAN_PATCHSET
97           default: "false"
98           description: "Have anteater scan patchsets (true) or full project (false)"
99       - project-parameter:
100           project: '{repo}'
101           branch: '{branch}'
102
103     scm:
104       - git-scm-gerrit
105
106     triggers:
107       - timed: '@weekly'
108
109     builders:
110       - anteater-security-audit-weekly
111
112     publishers:
113       # defined in jjb/global/releng-macros.yml
114       - 'email-{repo}-ptl':
115           subject: 'OPNFV Security Scan Result: {repo}'
116       - workspace-cleanup:
117           fail-build: false
118
119 - job-template:
120     name: 'opnfv-security-audit-verify-{stream}'
121
122     disabled: '{obj:disabled}'
123
124     parameters:
125       - label:
126           name: SLAVE_LABEL
127           default: 'opnfv-build'
128           description: 'Slave label on Jenkins'
129       - project-parameter:
130           project: $GERRIT_PROJECT
131           branch: '{branch}'
132       - string:
133           name: GIT_BASE
134           default: https://gerrit.opnfv.org/gerrit/$PROJECT
135           # yamllint disable rule:line-length
136           description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
137           # yamllint enable rule:line-length
138
139     scm:
140       - git-scm-gerrit
141
142     # yamllint disable rule:line-length
143     triggers:
144       - gerrit:
145           server-name: 'gerrit.opnfv.org'
146           trigger-on:
147             - patchset-created-event:
148                 exclude-drafts: 'false'
149                 exclude-trivial-rebase: 'false'
150                 exclude-no-code-change: 'false'
151             - draft-published-event
152             - comment-added-contains-event:
153                 comment-contains-value: 'recheck'
154           projects:
155             - project-compare-type: 'REG_EXP'
156               project-pattern: 'apex|armband|bamboo|barometer|bottlenecks|calipso|compass4nfv|conductor|copper|cperf|daisy|doctor|dovetail|dpacc|enfv|fds|fuel|functest|pharos|releng|sandbox|yardstick|infra|ipv6|kvmfornfv|models|moon|netready'
157               branches:
158                 - branch-compare-type: 'ANT'
159                   branch-pattern: '**/{branch}'
160               file-paths:
161                 - compare-type: ANT
162                   pattern: '**'
163           skip-vote:
164             successful: true
165             failed: true
166             unstable: true
167             notbuilt: true
168     # yamllint enable rule:line-length
169
170     builders:
171       - anteater-security-audit
172       - report-security-audit-result-to-gerrit
173     publishers:
174       - archive-artifacts:
175           artifacts: ".reports/*"
176
177 ########################
178 # builder macros
179 ########################
180 - builder:
181     name: anteater-security-audit
182     builders:
183       - shell:
184           !include-raw: ./anteater-security-audit.sh
185
186 - builder:
187     name: report-security-audit-result-to-gerrit
188     builders:
189       - shell:
190           !include-raw: ./anteater-report-to-gerrit.sh
191
192 - builder:
193     name: anteater-security-audit-weekly
194     builders:
195       - shell:
196           !include-raw: ./anteater-security-audit-weekly.sh