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