Fix Yamllint Violations for jjb/3rd_party_ci
[releng.git] / jjb / 3rd_party_ci / odl-netvirt.yml
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_SUITE_NAME=odl_netvirt
141                 RC_FILE_PATH=$HOME/cloner-info/overcloudrc
142               node-parameters: true
143               kill-phase-on: FAILURE
144               abort-all-job: false
145       - multijob:
146           name: postprocess
147           condition: ALWAYS
148           projects:
149             - name: 'odl-netvirt-verify-virtual-postprocess-{stream}'
150               current-parameters: false
151               predefined-parameters: |
152                 BRANCH=$BRANCH
153                 GERRIT_REFSPEC=$GERRIT_REFSPEC
154                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
155                 GERRIT_CHANGE_ID=$GERRIT_CHANGE_ID
156                 GERRIT_PATCHSET_NUMBER=$GERRIT_PATCHSET_NUMBER
157                 GERRIT_PATCHSET_REVISION=$GERRIT_PATCHSET_REVISION
158                 NETVIRT_ARTIFACT=$NETVIRT_ARTIFACT
159               node-parameters: true
160               kill-phase-on: FAILURE
161               abort-all-job: false
162
163 - job-template:
164     name: 'odl-netvirt-verify-virtual-{phase}-{stream}'
165
166     disabled: '{obj:disabled}'
167
168     concurrent: true
169
170     properties:
171       - logrotate-default
172       - throttle:
173           enabled: true
174           max-total: 5
175           max-per-node: 1
176           option: 'project'
177       - build-blocker:
178           use-build-blocker: true
179           blocking-jobs:
180             - 'odl-netvirt-verify-virtual-create-apex-vms-.*'
181             - 'odl-netvirt-verify-virtual-install-netvirt-.*'
182             - 'functest-netvirt-virtual-suite-.*'
183             - 'odl-netvirt-verify-virtual-postprocess-.*'
184           block-level: 'NODE'
185
186     wrappers:
187       - ssh-agent-wrapper
188       - timeout:
189           timeout: 360
190           fail: true
191
192     scm:
193       - git:
194           url: https://gerrit.opnfv.org/gerrit/apex
195           branches:
196             - 'origin/master'
197           timeout: 15
198           wipe-workspace: true
199
200     parameters:
201       - project-parameter:
202           project: '{project}'
203           branch: '{branch}'
204       - '{slave-label}-defaults'
205       - '{installer}-defaults'
206       - string:
207           name: DEPLOY_SCENARIO
208           default: 'os-odl_l2-bgpvpn-noha'
209           description: 'Scenario to deploy and test'
210       - string:
211           name: GS_URL
212           default: artifacts.opnfv.org/apex
213           description: "URL to Google Storage with snapshot artifacts."
214
215     builders:
216       - description-setter:
217           description: "Built on $NODE_NAME"
218       - '{project}-verify-{phase}-builder'
219 #####################################
220 # builder macros
221 #####################################
222 - builder:
223     name: 'netvirt-verify-create-apex-vms-builder'
224     builders:
225       - shell:
226           !include-raw: ../apex/apex-snapshot-deploy.sh
227 - builder:
228     name: 'netvirt-verify-install-netvirt-builder'
229     builders:
230       - shell:
231           !include-raw: ./download-netvirt-artifact.sh
232       - shell:
233           !include-raw: ./install-netvirt.sh
234 - builder:
235     name: 'netvirt-verify-postprocess-builder'
236     builders:
237       - shell:
238           !include-raw: ./postprocess-netvirt.sh