Merge "jjb/releng: fix compass-container $DOCKERFILE"
[releng.git] / jjb / 3rd_party_ci / odl-netvirt.yaml
1 ---
2 - project:
3     name: 'netvirt'
4
5     project: 'netvirt'
6
7     installer: 'netvirt'
8     #####################################
9     # branch definitions
10     #####################################
11     stream:
12       - master:
13           branch: '{stream}'
14           gs-pathname: ''
15           disabled: false
16       - carbon:
17           branch: 'stable/carbon'
18           gs-pathname: ''
19           disabled: false
20     #####################################
21     # patch verification phases
22     #####################################
23     phase:
24       - 'create-apex-vms':
25           slave-label: 'odl-netvirt-virtual-intel'
26       - 'install-netvirt':
27           slave-label: 'odl-netvirt-virtual-intel'
28       - 'postprocess':
29           slave-label: 'odl-netvirt-virtual-intel'
30     #####################################
31     # jobs
32     #####################################
33     jobs:
34       - 'odl-netvirt-verify-virtual-{stream}'
35       - 'odl-netvirt-verify-virtual-{phase}-{stream}'
36
37 #####################################
38 # job templates
39 #####################################
40 - job-template:
41     name: 'odl-netvirt-verify-virtual-{stream}'
42
43     project-type: multijob
44
45     disabled: '{obj:disabled}'
46
47     concurrent: true
48
49     properties:
50       - logrotate-default
51       - throttle:
52           enabled: true
53           max-total: 5
54           max-per-node: 1
55           option: 'project'
56
57     scm:
58       - git:
59           url: https://gerrit.opnfv.org/gerrit/apex
60           branches:
61             - 'origin/master'
62           timeout: 15
63           wipe-workspace: true
64
65     parameters:
66       - project-parameter:
67           project: '{project}'
68           branch: '{branch}'
69       - string:
70           name: NETVIRT_ARTIFACT
71           default: distribution-karaf.tar.gz
72       - 'odl-netvirt-virtual-intel-defaults'
73
74     triggers:
75       - gerrit:
76           server-name: 'git.opendaylight.org'
77           trigger-on:
78             # yamllint disable rule:line-length
79             # - comment-added-contains-event:
80             #     comment-contains-value: 'https://jenkins.opendaylight.org/releng/job/netvirt-patch-test-current-carbon/.*?/ : SUCCESS'
81             # - comment-added-contains-event:
82             #     comment-contains-value: 'https://jenkins.opendaylight.org/releng/job/netvirt-patch-test-current-carbon/.*?/ : UNSTABLE'
83             # yamllint enable rule:line-length
84             - comment-added-contains-event:
85                 comment-contains-value: 'opnfv-test'
86           projects:
87             - project-compare-type: 'ANT'
88               project-pattern: '{project}'
89               branches:
90                 - branch-compare-type: 'ANT'
91                   branch-pattern: '**/{branch}'
92           readable-message: true
93
94     builders:
95       - description-setter:
96           description: "Built on $NODE_NAME"
97       - multijob:
98           name: create-apex-vms
99           condition: SUCCESSFUL
100           projects:
101             - name: 'odl-netvirt-verify-virtual-create-apex-vms-{stream}'
102               current-parameters: false
103               predefined-parameters: |
104                 BRANCH=$BRANCH
105                 GERRIT_REFSPEC=$GERRIT_REFSPEC
106                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
107                 GERRIT_CHANGE_ID=$GERRIT_CHANGE_ID
108                 GERRIT_PATCHSET_NUMBER=$GERRIT_PATCHSET_NUMBER
109                 GERRIT_PATCHSET_REVISION=$GERRIT_PATCHSET_REVISION
110                 NETVIRT_ARTIFACT=$NETVIRT_ARTIFACT
111                 APEX_ENV_NUMBER=$APEX_ENV_NUMBER
112               node-parameters: true
113               kill-phase-on: FAILURE
114               abort-all-job: true
115       - multijob:
116           name: install-netvirt
117           condition: SUCCESSFUL
118           projects:
119             - name: 'odl-netvirt-verify-virtual-install-netvirt-{stream}'
120               current-parameters: false
121               predefined-parameters: |
122                 ODL_BRANCH={branch}
123                 BRANCH=$BRANCH
124                 GERRIT_REFSPEC=$GERRIT_REFSPEC
125                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
126                 GERRIT_CHANGE_ID=$GERRIT_CHANGE_ID
127                 GERRIT_PATCHSET_NUMBER=$GERRIT_PATCHSET_NUMBER
128                 GERRIT_PATCHSET_REVISION=$GERRIT_PATCHSET_REVISION
129                 NETVIRT_ARTIFACT=$NETVIRT_ARTIFACT
130               node-parameters: true
131               kill-phase-on: FAILURE
132               abort-all-job: true
133       - multijob:
134           name: functest
135           condition: SUCCESSFUL
136           projects:
137             - name: 'functest-netvirt-virtual-suite-master'
138               predefined-parameters: |
139                 DEPLOY_SCENARIO=os-odl_l3-nofeature-ha
140                 FUNCTEST_MODE=testcase
141                 FUNCTEST_SUITE_NAME=odl_netvirt
142                 RC_FILE_PATH=$HOME/cloner-info/overcloudrc
143               node-parameters: true
144               kill-phase-on: FAILURE
145               abort-all-job: false
146       - multijob:
147           name: postprocess
148           condition: ALWAYS
149           projects:
150             - name: 'odl-netvirt-verify-virtual-postprocess-{stream}'
151               current-parameters: false
152               predefined-parameters: |
153                 BRANCH=$BRANCH
154                 GERRIT_REFSPEC=$GERRIT_REFSPEC
155                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
156                 GERRIT_CHANGE_ID=$GERRIT_CHANGE_ID
157                 GERRIT_PATCHSET_NUMBER=$GERRIT_PATCHSET_NUMBER
158                 GERRIT_PATCHSET_REVISION=$GERRIT_PATCHSET_REVISION
159                 NETVIRT_ARTIFACT=$NETVIRT_ARTIFACT
160               node-parameters: true
161               kill-phase-on: FAILURE
162               abort-all-job: false
163
164 - job-template:
165     name: 'odl-netvirt-verify-virtual-{phase}-{stream}'
166
167     disabled: '{obj:disabled}'
168
169     concurrent: true
170
171     properties:
172       - logrotate-default
173       - throttle:
174           enabled: true
175           max-total: 5
176           max-per-node: 1
177           option: 'project'
178       - build-blocker:
179           use-build-blocker: true
180           blocking-jobs:
181             - 'odl-netvirt-verify-virtual-create-apex-vms-.*'
182             - 'odl-netvirt-verify-virtual-install-netvirt-.*'
183             - 'functest-netvirt-virtual-suite-.*'
184             - 'odl-netvirt-verify-virtual-postprocess-.*'
185           block-level: 'NODE'
186
187     wrappers:
188       - ssh-agent-wrapper
189       - timeout:
190           timeout: 360
191           fail: true
192
193     scm:
194       - git:
195           url: https://gerrit.opnfv.org/gerrit/apex
196           branches:
197             - 'origin/master'
198           timeout: 15
199           wipe-workspace: true
200
201     parameters:
202       - project-parameter:
203           project: '{project}'
204           branch: '{branch}'
205       - '{slave-label}-defaults'
206       - '{installer}-defaults'
207       - string:
208           name: DEPLOY_SCENARIO
209           default: 'os-odl_l2-bgpvpn-noha'
210           description: 'Scenario to deploy and test'
211       - string:
212           name: GS_URL
213           default: artifacts.opnfv.org/apex
214           description: "URL to Google Storage with snapshot artifacts."
215
216     builders:
217       - description-setter:
218           description: "Built on $NODE_NAME"
219       - '{project}-verify-{phase}-builder'
220 #####################################
221 # builder macros
222 #####################################
223 - builder:
224     name: 'netvirt-verify-create-apex-vms-builder'
225     builders:
226       - shell:
227           !include-raw: ../apex/apex-snapshot-deploy.sh
228 - builder:
229     name: 'netvirt-verify-install-netvirt-builder'
230     builders:
231       - shell:
232           !include-raw: ./download-netvirt-artifact.sh
233       - shell:
234           !include-raw: ./install-netvirt.sh
235 - builder:
236     name: 'netvirt-verify-postprocess-builder'
237     builders:
238       - shell:
239           !include-raw: ./postprocess-netvirt.sh