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