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