Merge "disable the opera"
[releng.git] / jjb / xci / xci-merge-jobs.yml
1 ---
2 - project:
3     name: 'opnfv-xci-merge'
4
5     # -------------------------------
6     # branches
7     # -------------------------------
8     stream:
9       - master:
10           branch: '{stream}'
11     # -------------------------------
12     # distros
13     # -------------------------------
14     distro:
15       - ubuntu:
16           disabled: false
17       - centos:
18           disabled: false
19       - opensuse:
20           disabled: false
21     # -------------------------------
22     # type
23     # -------------------------------
24     type:
25       - virtual
26     # -------------------------------
27     # patch verification phases
28     # -------------------------------
29     phase:
30       - 'deploy'
31       - 'healthcheck'
32       - 'promote'
33     # -------------------------------
34     # scenarios
35     # -------------------------------
36     scenario:
37       - 'os-odl-sfc':
38           project: sfc
39     # -------------------------------
40     # jobs
41     # -------------------------------
42     jobs:
43       - 'xci-{scenario}-{type}-{distro}-merge-{stream}'
44       - 'xci-{phase}-{type}-{distro}-merge-{stream}'
45 # -------------------------------
46 # job templates
47 # -------------------------------
48 - job-template:
49     name: 'xci-{scenario}-{type}-{distro}-merge-{stream}'
50
51     project-type: multijob
52
53     disabled: '{obj:disabled}'
54
55     concurrent: false
56
57     properties:
58       - logrotate-default
59       - build-blocker:
60           use-build-blocker: true
61           blocking-jobs:
62             - 'xci-verify-{distro}-.*'
63             - 'bifrost-verify-{distro}-.*'
64             - 'bifrost-periodic-{distro}-.*'
65             - 'xci-osa-verify-{distro}-.*'
66             - 'xci-osa-periodic-{distro}-.*'
67             - 'xci-(os|k8s).*?-virtual-{distro}-.*'
68           block-level: 'NODE'
69
70     wrappers:
71       - ssh-agent-wrapper
72       - build-timeout:
73           timeout: 240
74       - fix-workspace-permissions
75
76     scm:
77       - git:
78           credentials-id: '$SSH_CREDENTIAL_ID'
79           url: 'https://gerrit.opnfv.org/gerrit/releng-xci'
80           branches:
81             - 'origin/master'
82           timeout: 15
83
84     triggers:
85       - gerrit:
86           server-name: 'gerrit.opnfv.org'
87           trigger-on:
88             - change-merged-event
89             - comment-added-contains-event:
90                 comment-contains-value: 'remerge'
91           projects:
92             - project-compare-type: 'ANT'
93               project-pattern: '{obj:project}'
94               branches:
95                 - branch-compare-type: 'ANT'
96                   branch-pattern: '**/{branch}'
97               disable-strict-forbidden-file-verification: 'true'
98               file-paths:
99                 - compare-type: ANT
100                   pattern: 'scenarios/**'
101           readable-message: true
102           custom-url: '* $JOB_NAME $BUILD_URL'
103
104     parameters:
105       - project-parameter:
106           project: '{obj:project}'
107           branch: '{branch}'
108       - label:
109           name: SLAVE_LABEL
110           default: 'xci-virtual'
111       - string:
112           name: DEPLOY_SCENARIO
113           default: '{scenario}'
114       - string:
115           name: CLEAN_DIB_IMAGES
116           default: 'true'
117       - string:
118           name: GIT_BASE
119           default: https://gerrit.opnfv.org/gerrit/$PROJECT
120           description: 'Git URL to use on this Jenkins Slave'
121
122     builders:
123       - description-setter:
124           description: "Built on $NODE_NAME"
125       - multijob:
126           name: deploy
127           condition: SUCCESSFUL
128           projects:
129             - name: 'xci-deploy-{type}-{distro}-merge-{stream}'
130               current-parameters: true
131               predefined-parameters: |
132                 PROJECT=$PROJECT
133                 DISTRO={distro}
134                 DEPLOY_SCENARIO={scenario}
135                 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
136                 GERRIT_BRANCH=$GERRIT_BRANCH
137                 GERRIT_REFSPEC=$GERRIT_REFSPEC
138                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
139                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
140               node-parameters: true
141               kill-phase-on: FAILURE
142               abort-all-job: true
143       - multijob:
144           name: healthcheck
145           condition: SUCCESSFUL
146           projects:
147             - name: 'xci-healthcheck-{type}-{distro}-merge-{stream}'
148               current-parameters: true
149               predefined-parameters: |
150                 PROJECT=$PROJECT
151                 DISTRO={distro}
152                 DEPLOY_SCENARIO={scenario}
153                 CLEAN_DIB_IMAGES=$CLEAN_DIB_IMAGES
154                 FUNCTEST_MODE=tier
155                 FUNCTEST_TIER=healthcheck
156                 GERRIT_BRANCH=$GERRIT_BRANCH
157                 GERRIT_REFSPEC=$GERRIT_REFSPEC
158                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
159                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
160               node-parameters: true
161               kill-phase-on: NEVER
162               abort-all-job: true
163
164 - job-template:
165     name: 'xci-{phase}-{type}-{distro}-merge-{stream}'
166
167     disabled: false
168
169     concurrent: true
170
171     properties:
172       - logrotate-default
173       - build-blocker:
174           use-build-blocker: true
175           blocking-jobs:
176             - '.*-bifrost-verify-.*'
177             - '.*-bifrost-periodic-.*'
178             - 'osa-verify-.*'
179             - 'osa-periodic-.*'
180           block-level: 'NODE'
181
182     parameters:
183       - string:
184           name: PROJECT
185           default: 'releng-xci'
186       - string:
187           name: DISTRO
188           default: 'ubuntu'
189       - string:
190           name: DEPLOY_SCENARIO
191           default: 'os-nosdn-nofeature-noha'
192       - string:
193           name: FUNCTEST_MODE
194           default: 'tier'
195       - string:
196           name: FUNCTEST_SUITE_NAME
197           default: 'healthcheck'
198       - string:
199           name: XCI_FLAVOR
200           default: 'mini'
201       - string:
202           name: CLEAN_DIB_IMAGES
203           default: 'true'
204       - string:
205           name: OPNFV_RELENG_DEV_PATH
206           default: $WORKSPACE/
207       - string:
208           name: INSTALLER_TYPE
209           default: 'osa'
210       - string:
211           name: GIT_BASE
212           default: https://gerrit.opnfv.org/gerrit/$PROJECT
213           description: 'Git URL to use on this Jenkins Slave'
214
215     wrappers:
216       - ssh-agent-wrapper
217       - build-timeout:
218           timeout: 240
219       - fix-workspace-permissions
220
221     scm:
222       - git:
223           credentials-id: '$SSH_CREDENTIAL_ID'
224           url: 'https://gerrit.opnfv.org/gerrit/releng-xci'
225           branches:
226             - 'origin/master'
227           timeout: 15
228
229     builders:
230       - description-setter:
231           description: "Built on $NODE_NAME"
232       - 'xci-merge-{phase}-macro'
233
234 # -------------------------------
235 # builder macros
236 # -------------------------------
237 - builder:
238     name: 'xci-merge-deploy-macro'
239     builders:
240       - shell:
241           !include-raw: ./xci-start-new-vm.sh
242       - shell:
243           !include-raw: ./xci-start-deployment.sh
244
245 - builder:
246     name: 'xci-merge-healthcheck-macro'
247     builders:
248       - shell:
249           !include-raw: ./xci-run-functest.sh
250       - shell:
251           !include-raw: ./xci-cleanup.sh
252
253 - builder:
254     name: 'xci-merge-promote-macro'
255     builders:
256       - shell:
257           !include-raw: ./xci-promote.sh