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