Update XCI Forbidden Paths to include all READMEs
[releng.git] / jjb / xci / xci-verify-jobs.yml
1 - project:
2     name: 'opnfv-xci-verify'
3
4     project: releng-xci
5 #--------------------------------
6 # branches
7 #--------------------------------
8     stream:
9         - master:
10             branch: '{stream}'
11 #--------------------------------
12 # distros
13 #--------------------------------
14     distro:
15         - 'xenial':
16             disabled: false
17         - 'centos7':
18             disabled: true
19         - 'suse':
20             disabled: true
21 #--------------------------------
22 # type
23 #--------------------------------
24     type:
25         - virtual
26 #--------------------------------
27 # patch verification phases
28 #--------------------------------
29     phase:
30         - 'deploy'
31         - 'healthcheck'
32 #--------------------------------
33 # jobs
34 #--------------------------------
35     jobs:
36         - 'xci-verify-{distro}-{type}-{stream}'
37         - 'xci-verify-{phase}-{type}-{stream}'
38 #--------------------------------
39 # job templates
40 #--------------------------------
41 - job-template:
42     name: 'xci-verify-{distro}-{type}-{stream}'
43
44     project-type: multijob
45
46     disabled: '{obj:disabled}'
47
48     concurrent: true
49
50     properties:
51         - logrotate-default
52         - build-blocker:
53             use-build-blocker: true
54             blocking-jobs:
55                 - 'xci-verify-.*'
56                 - 'bifrost-verify-.*'
57                 - 'bifrost-periodic-.*'
58                 - 'osa-verify-.*'
59                 - 'osa-periodic-.*'
60             block-level: 'NODE'
61
62     wrappers:
63         - ssh-agent-wrapper
64         - build-timeout:
65             timeout: 240
66         - fix-workspace-permissions
67
68     scm:
69         - git-scm-gerrit
70
71     triggers:
72         - gerrit:
73             server-name: 'gerrit.opnfv.org'
74             trigger-on:
75                 - patchset-created-event:
76                     exclude-drafts: 'false'
77                     exclude-trivial-rebase: 'false'
78                     exclude-no-code-change: 'true'
79                 - draft-published-event
80                 - comment-added-contains-event:
81                     comment-contains-value: 'recheck'
82                 - comment-added-contains-event:
83                     comment-contains-value: 'reverify'
84             projects:
85               - project-compare-type: 'ANT'
86                 project-pattern: '{project}'
87                 branches:
88                   - branch-compare-type: 'ANT'
89                     branch-pattern: '**/{branch}'
90                 file-paths:
91                   - compare-type: ANT
92                     pattern: 'xci/**'
93                 disable-strict-forbidden-file-verification: 'true'
94                 forbidden-file-paths:
95                   - compare-type: ANT
96                     pattern: 'bifrost/**'
97                   - compare-type: ANT
98                     pattern: '**/README.rst'
99             readable-message: true
100
101     parameters:
102         - project-parameter:
103             project: '{project}'
104             branch: '{branch}'
105         - label:
106             name: SLAVE_LABEL
107             default: 'xci-virtual-{distro}'
108         - string:
109             name: GIT_BASE
110             default: https://gerrit.opnfv.org/gerrit/$PROJECT
111             description: 'Git URL to use on this Jenkins Slave'
112
113     builders:
114         - description-setter:
115             description: "Built on $NODE_NAME"
116         - multijob:
117             name: deploy
118             condition: SUCCESSFUL
119             projects:
120                 - name: 'xci-verify-deploy-{type}-{stream}'
121                   current-parameters: true
122                   predefined-parameters: |
123                     DISTRO={distro}
124                     DEPLOY_SCENARIO=os-nosdn-nofeature-noha
125                   node-parameters: true
126                   kill-phase-on: FAILURE
127                   abort-all-job: true
128         - multijob:
129             name: healthcheck
130             condition: SUCCESSFUL
131             projects:
132                 - name: 'xci-verify-healthcheck-{type}-{stream}'
133                   current-parameters: true
134                   predefined-parameters: |
135                     DISTRO={distro}
136                     DEPLOY_SCENARIO=os-nosdn-nofeature-noha
137                     FUNCTEST_SUITE_NAME=healthcheck
138                   node-parameters: true
139                   kill-phase-on: NEVER
140                   abort-all-job: true
141
142 - job-template:
143     name: 'xci-verify-{phase}-{type}-{stream}'
144
145     disabled: false
146
147     concurrent: true
148
149     properties:
150         - logrotate-default
151         - build-blocker:
152             use-build-blocker: true
153             blocking-jobs:
154                 - 'xci-verify-deploy-.*'
155                 - 'xci-verify-healthcheck-.*'
156                 - 'bifrost-verify-.*'
157                 - 'bifrost-periodic-.*'
158                 - 'osa-verify-.*'
159                 - 'osa-periodic-.*'
160             block-level: 'NODE'
161
162     parameters:
163         - string:
164             name: DISTRO
165             default: 'xenial'
166         - string:
167             name: DEPLOY_SCENARIO
168             default: 'os-nosdn-nofeature-noha'
169         - string:
170             name: FUNCTEST_SUITE_NAME
171             default: 'healthcheck'
172         - string:
173             name: XCI_FLAVOR
174             default: 'mini'
175         - string:
176             name: OPNFV_RELENG_DEV_PATH
177             default: $WORKSPACE/
178         - string:
179             name: ANSIBLE_VERBOSITY
180             default: '-vvvv'
181         - string:
182             name: GIT_BASE
183             default: https://gerrit.opnfv.org/gerrit/$PROJECT
184             description: 'Git URL to use on this Jenkins Slave'
185
186     wrappers:
187         - ssh-agent-wrapper
188         - build-timeout:
189             timeout: 240
190         - fix-workspace-permissions
191
192     scm:
193         - git-scm-gerrit
194
195     builders:
196         - description-setter:
197             description: "Built on $NODE_NAME"
198         - 'xci-verify-{phase}-macro'
199
200 #--------------------------------
201 # builder macros
202 #--------------------------------
203 - builder:
204     name: 'xci-verify-deploy-macro'
205     builders:
206         - shell: |
207             #!/bin/bash
208
209             # for some reason, the PATH is not set correctly
210             # setting PATH for ansible stuff
211             export PATH=/home/jenkins/.local/bin:$PATH
212
213             cd $WORKSPACE/xci
214             ./xci-deploy.sh
215
216 - builder:
217     name: 'xci-verify-healthcheck-macro'
218     builders:
219         - shell: |
220             #!/bin/bash
221
222             echo "Hello World!"