Merge "[compass] undo colorado CI build since we have release colorado3.0"
[releng.git] / jjb / 3rd_party_ci / odl-netvirt.yml
1 - project:
2     name: 'netvirt'
3
4     project: 'netvirt'
5
6     installer: 'apex'
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         - 'install'
20         - 'functest'
21         - 'postprocess'
22 #####################################
23 # jobs
24 #####################################
25     jobs:
26         - 'odl-netvirt-verify-virtual-{stream}'
27         - 'odl-netvirt-verify-virtual-{phase}-{stream}'
28 #####################################
29 # job templates
30 #####################################
31 - job-template:
32     name: 'odl-netvirt-verify-virtual-{stream}'
33
34     project-type: multijob
35
36     disabled: '{obj:disabled}'
37
38     concurrent: true
39
40     properties:
41         - throttle:
42             enabled: true
43             max-total: 5
44             max-per-node: 1
45             option: 'project'
46
47     parameters:
48         - project-parameter:
49             project: '{project}'
50         - gerrit-parameter:
51             branch: '{branch}'
52         - string:
53             name: NETVIRT_ARTIFACT
54             default: $WORKSPACE/distribution-karaf.tar.gz"
55         - 'odl-netvirt-virtual-defaults'
56
57     scm:
58         #- git:
59         #    url: 'https://git.opendaylight.org/gerrit/p/$PROJECT.git'
60         #    refspec: '$GERRIT_REFSPEC'
61         #    branches:
62         #        - 'origin/$GERRIT_BRANCH'
63         #    skip-tag: true
64         #    choosing-strategy: 'gerrit'
65         #    timeout: 10
66         #    wipe-workspace: true
67         - gerrit-trigger-scm:
68             credentials-id: '{ssh-credentials}'
69             refspec: '$GERRIT_REFSPEC'
70             choosing-strategy: 'gerrit'
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             projects:
81               - project-compare-type: 'ANT'
82                 project-pattern: '{project}'
83                 branches:
84                   - branch-compare-type: 'ANT'
85                     branch-pattern: '**/{branch}'
86             readable-message: true
87
88     builders:
89         - description-setter:
90             description: "Built on $NODE_NAME"
91         - shell: |
92             #!/bin/bash
93             ls -al $WORKSPACE
94         - multijob:
95             name: install
96             condition: SUCCESSFUL
97             projects:
98                 - name: 'odl-netvirt-verify-virtual-install-{stream}'
99                   current-parameters: false
100                   predefined-parameters: |
101                     GERRIT_BRANCH=$GERRIT_BRANCH
102                     GERRIT_REFSPEC=$GERRIT_REFSPEC
103                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
104                     GERRIT_CHANGE_ID=$GERRIT_CHANGE_ID
105                     GERRIT_PATCHSET_NUMBER=$GERRIT_PATCHSET_NUMBER
106                     GERRIT_PATCHSET_REVISION=$GERRIT_PATCHSET_REVISION
107                     NETVIRT_ARTIFACT=$NETVIRT_ARTIFACT
108                   node-parameters: true
109                   kill-phase-on: FAILURE
110                   abort-all-job: true
111         - multijob:
112             name: functest
113             condition: SUCCESSFUL
114             projects:
115                 - name: 'odl-netvirt-verify-virtual-functest-{stream}'
116                   current-parameters: false
117                   predefined-parameters: |
118                     GERRIT_BRANCH=$GERRIT_BRANCH
119                     GERRIT_REFSPEC=$GERRIT_REFSPEC
120                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
121                     GERRIT_CHANGE_ID=$GERRIT_CHANGE_ID
122                     GERRIT_PATCHSET_NUMBER=$GERRIT_PATCHSET_NUMBER
123                     GERRIT_PATCHSET_REVISION=$GERRIT_PATCHSET_REVISION
124                     NETVIRT_ARTIFACT=$NETVIRT_ARTIFACT
125                   node-parameters: true
126                   kill-phase-on: FAILURE
127                   abort-all-job: true
128         - multijob:
129             name: postprocess
130             condition: SUCCESSFUL
131             projects:
132                 - name: 'odl-netvirt-verify-virtual-postprocess-{stream}'
133                   current-parameters: false
134                   predefined-parameters: |
135                     GERRIT_BRANCH=$GERRIT_BRANCH
136                     GERRIT_REFSPEC=$GERRIT_REFSPEC
137                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
138                     GERRIT_CHANGE_ID=$GERRIT_CHANGE_ID
139                     GERRIT_PATCHSET_NUMBER=$GERRIT_PATCHSET_NUMBER
140                     GERRIT_PATCHSET_REVISION=$GERRIT_PATCHSET_REVISION
141                     NETVIRT_ARTIFACT=$NETVIRT_ARTIFACT
142                   node-parameters: true
143                   kill-phase-on: FAILURE
144                   abort-all-job: true
145
146 - job-template:
147     name: 'odl-netvirt-verify-virtual-{phase}-{stream}'
148
149     disabled: '{obj:disabled}'
150
151     concurrent: true
152
153     properties:
154         - throttle:
155             enabled: true
156             max-total: 5
157             max-per-node: 1
158             option: 'project'
159         - build-blocker:
160             use-build-blocker: true
161             blocking-jobs:
162                 - 'odl-netvirt-verify-virtual-install-.*'
163                 - 'odl-netvirt-verify-virtual-functest-.*'
164                 - 'odl-netvirt-verify-virtual-postprocess-.*'
165             block-level: 'NODE'
166
167     scm:
168         - gerrit-trigger-scm:
169             credentials-id: '{ssh-credentials}'
170             refspec: '$GERRIT_REFSPEC'
171             choosing-strategy: 'gerrit'
172
173     wrappers:
174         - ssh-agent-credentials:
175             users:
176                 - '{ssh-credentials}'
177         - timeout:
178             timeout: 360
179             fail: true
180
181     parameters:
182         - project-parameter:
183             project: '{project}'
184         - gerrit-parameter:
185             branch: '{branch}'
186         - 'odl-netvirt-virtual-defaults'
187         - '{installer}-defaults'
188
189     builders:
190         - description-setter:
191             description: "Built on $NODE_NAME"
192         - '{project}-verify-{phase}-builder'
193 #####################################
194 # builder macros
195 #####################################
196 - builder:
197     name: 'netvirt-verify-install-builder'
198     builders:
199         - shell:
200             !include-raw: ./download-netvirt-artifact.sh
201         - shell:
202             !include-raw: ./install-netvirt.sh
203
204 - builder:
205     name: 'netvirt-verify-functest-builder'
206     builders:
207         - shell:
208             !include-raw: ./functest-netvirt.sh
209
210 - builder:
211     name: 'netvirt-verify-postprocess-builder'
212     builders:
213         - shell:
214             !include-raw: ./postprocess-netvirt.sh