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